@Test public void expireCachedRoster () { platform.getRoster(); platform.expireCachedRoster(); platform.getRoster(); verify(platform, times(2)).generateRoster(); assertThat(platform.getRoster(), IsIterableContainingInAnyOrder.containsInAnyOrder(container)); }
public void expireCachedRoster () { if (roster != null) roster.expire(); }
Platform implements ExperimentalObject { public void expireCachedRoster () { if (roster != null) roster.expire(); } }
Platform implements ExperimentalObject { public void expireCachedRoster () { if (roster != null) roster.expire(); }  }
Platform implements ExperimentalObject { public void expireCachedRoster () { if (roster != null) roster.expire(); }  void setAverageMillisPerExperiment(long averageMillisPerExperiment); void expireCachedRoster(); abstract ApiStatus getApiStatus(); abstract PlatformLevel getPlatformLevel(); abstract PlatformHealth getPlatformHealth(); double getDestructionProbability(); String getPlatformType(); synchronized List<Container> getRoster(); Collection<Container> getRosterByAggregationId(String aggregationId); @Override synchronized boolean canExperiment(); Instant getNextChaosTime(); Platform scheduleExperiment(); @SuppressWarnings("unused") // get methods are consumed by Spring Rest. Set<Date> getExperimentTimes(); @JsonIgnore Duration getMinimumSelfHealingInterval(); List<Container> generateExperimentRoster(); abstract boolean isContainerRecycled(Container container); boolean hasEligibleContainersForExperiments(); Container getContainerByIdentifier(String containerIdentifier); }
Platform implements ExperimentalObject { public void expireCachedRoster () { if (roster != null) roster.expire(); }  void setAverageMillisPerExperiment(long averageMillisPerExperiment); void expireCachedRoster(); abstract ApiStatus getApiStatus(); abstract PlatformLevel getPlatformLevel(); abstract PlatformHealth getPlatformHealth(); double getDestructionProbability(); String getPlatformType(); synchronized List<Container> getRoster(); Collection<Container> getRosterByAggregationId(String aggregationId); @Override synchronized boolean canExperiment(); Instant getNextChaosTime(); Platform scheduleExperiment(); @SuppressWarnings("unused") // get methods are consumed by Spring Rest. Set<Date> getExperimentTimes(); @JsonIgnore Duration getMinimumSelfHealingInterval(); List<Container> generateExperimentRoster(); abstract boolean isContainerRecycled(Container container); boolean hasEligibleContainersForExperiments(); Container getContainerByIdentifier(String containerIdentifier);  }