ExecutableRampMap extends BaseRefreshableMap<String, ExecutableRamp> { public Collection<ExecutableRamp> getAll() { return this.values().stream().collect(Collectors.toSet()); }  static ExecutableRampMap createInstance(); Collection<ExecutableRamp> getActivatedAll(); Collection<ExecutableRamp> getAll(); @Override ExecutableRampMap clone();  }
@Test public void testEmptySet() { Assert.assertTrue(executableMap.isEmpty()); Assert.assertTrue(executableMap.getAll().isEmpty()); executableMap.add(RAMP1, ExecutableRamp.builder(RAMP1, RAMP_POLICY1) .setMetadata(ExecutableRamp.Metadata.builder() .setMaxFailureToPause(500) .setMaxFailureToRampDown(500) .setPercentageScaleForMaxFailure(false) .build()) .setState(ExecutableRamp.State.builder() .setStartTime(0) .setEndTime(0) .setLastUpdatedTime(0) .setNumOfTrail(0) .setNumOfSuccess(0) .setNumOfFailure(0) .setNumOfIgnored(0) .setPaused(false) .setRampStage(1) .setActive(true) .build()) .build() ); Assert.assertFalse(executableMap.getAll().isEmpty()); }