@Test public void constructPassingContextWhenZonesDisabled() { final IllegalStateException exception = expectThrows( IllegalStateException.class, () -> AreaOfInterestService.create( Replicant.context() ) ); assertEquals( exception.getMessage(), "Replicant-0037: ReplicantService passed a context but Replicant.areZonesEnabled() is false" ); }
@Nonnull static AreaOfInterestService create( @Nullable final ReplicantContext context ) { return new Arez_AreaOfInterestService( context ); }
AreaOfInterestService extends ReplicantService { @Nonnull static AreaOfInterestService create( @Nullable final ReplicantContext context ) { return new Arez_AreaOfInterestService( context ); } }
AreaOfInterestService extends ReplicantService { @Nonnull static AreaOfInterestService create( @Nullable final ReplicantContext context ) { return new Arez_AreaOfInterestService( context ); } AreaOfInterestService( @Nullable final ReplicantContext context ); }
AreaOfInterestService extends ReplicantService { @Nonnull static AreaOfInterestService create( @Nullable final ReplicantContext context ) { return new Arez_AreaOfInterestService( context ); } AreaOfInterestService( @Nullable final ReplicantContext context ); @Observable( expectSetter = false ) @Nonnull Stream<AreaOfInterest> areasOfInterest(); }
AreaOfInterestService extends ReplicantService { @Nonnull static AreaOfInterestService create( @Nullable final ReplicantContext context ) { return new Arez_AreaOfInterestService( context ); } AreaOfInterestService( @Nullable final ReplicantContext context ); @Observable( expectSetter = false ) @Nonnull Stream<AreaOfInterest> areasOfInterest();  }