@Test public void context_when_zones_disabled() { ReplicantTestUtil.disableZones(); final ReplicantContext context1 = Replicant.context(); assertNotNull( context1 ); final ReplicantContext context2 = Replicant.context(); assertSame( context1, context2 ); }
@Nonnull public static ReplicantContext context() { return areZonesEnabled() ? ReplicantZoneHolder.context() : ReplicantContextHolder.context(); }
Replicant { @Nonnull public static ReplicantContext context() { return areZonesEnabled() ? ReplicantZoneHolder.context() : ReplicantContextHolder.context(); } }
Replicant { @Nonnull public static ReplicantContext context() { return areZonesEnabled() ? ReplicantZoneHolder.context() : ReplicantContextHolder.context(); } private  Replicant(); }
Replicant { @Nonnull public static ReplicantContext context() { return areZonesEnabled() ? ReplicantZoneHolder.context() : ReplicantContextHolder.context(); } private  Replicant(); static boolean areNamesEnabled(); static boolean isChangeBrokerEnabled(); static boolean areEventsEnabled(); static boolean areZonesEnabled(); static boolean areSpiesEnabled(); static boolean shouldCheckInvariants(); static boolean shouldCheckApiInvariants(); static boolean shouldValidateChangeSetOnRead(); static boolean shouldValidateEntitiesOnLoad(); @Nonnull static ReplicantContext context(); @Nonnull static Zone createZone(); }
Replicant { @Nonnull public static ReplicantContext context() { return areZonesEnabled() ? ReplicantZoneHolder.context() : ReplicantContextHolder.context(); } private  Replicant(); static boolean areNamesEnabled(); static boolean isChangeBrokerEnabled(); static boolean areEventsEnabled(); static boolean areZonesEnabled(); static boolean areSpiesEnabled(); static boolean shouldCheckInvariants(); static boolean shouldCheckApiInvariants(); static boolean shouldValidateChangeSetOnRead(); static boolean shouldValidateEntitiesOnLoad(); @Nonnull static ReplicantContext context(); @Nonnull static Zone createZone();  }