@Test public void now() { final ZonedDateTime nowBefore = ZonedDateTime.now(); final ZonedDateTime now = context.now(); final ZonedDateTime nowAfter = ZonedDateTime.now(); Assert.assertFalse( now.isBefore( nowBefore ) ); Assert.assertFalse( now.isAfter( nowAfter ) ); }
@Nonnull @Override public ZonedDateTime now() { return ZonedDateTime.now(); }
FhirToDhisTransformerContextImpl implements FhirToDhisTransformerContext { @Nonnull @Override public ZonedDateTime now() { return ZonedDateTime.now(); } }
FhirToDhisTransformerContextImpl implements FhirToDhisTransformerContext { @Nonnull @Override public ZonedDateTime now() { return ZonedDateTime.now(); } FhirToDhisTransformerContextImpl( @Nonnull FhirRequest fhirRequest, boolean creationDisabled ); }
FhirToDhisTransformerContextImpl implements FhirToDhisTransformerContext { @Nonnull @Override public ZonedDateTime now() { return ZonedDateTime.now(); } FhirToDhisTransformerContextImpl( @Nonnull FhirRequest fhirRequest, boolean creationDisabled ); @Nonnull @Override FhirRequest getFhirRequest(); @Nullable @Override Reference createReference( @Nullable String value, @Nonnull Object referenceType ); @Nullable @Override String extractDhisId( @Nullable Object idElement ); @Nonnull @Override ZonedDateTime now(); @Override boolean isCreationDisabled(); @Override void fail( @Nonnull String message ); @Nullable @Override String getDhisUsername(); @Nonnull @Override FhirVersion getFhirVersion(); @Override void setAttribute( @Nonnull String name, @Nullable Object value ); @Nullable @Override Object getAttribute( @Nonnull String name ); }
FhirToDhisTransformerContextImpl implements FhirToDhisTransformerContext { @Nonnull @Override public ZonedDateTime now() { return ZonedDateTime.now(); } FhirToDhisTransformerContextImpl( @Nonnull FhirRequest fhirRequest, boolean creationDisabled ); @Nonnull @Override FhirRequest getFhirRequest(); @Nullable @Override Reference createReference( @Nullable String value, @Nonnull Object referenceType ); @Nullable @Override String extractDhisId( @Nullable Object idElement ); @Nonnull @Override ZonedDateTime now(); @Override boolean isCreationDisabled(); @Override void fail( @Nonnull String message ); @Nullable @Override String getDhisUsername(); @Nonnull @Override FhirVersion getFhirVersion(); @Override void setAttribute( @Nonnull String name, @Nullable Object value ); @Nullable @Override Object getAttribute( @Nonnull String name );  }