DefaultActivationStrategyProvider implements ActivationStrategyProvider { @Override public List<ActivationStrategy> getActivationStrategies() { return Collections.unmodifiableList(this.strategies); } DefaultActivationStrategyProvider(); void addActivationStrategy(ActivationStrategy strategy); void addActivationStrategies(List<ActivationStrategy> strategies); @Override List<ActivationStrategy> getActivationStrategies();  }
@Test public void shouldLoadDefaultStrategies() { assertThat(provider.getActivationStrategies()) .extracting("id") .contains(UsernameActivationStrategy.ID) .contains(GradualActivationStrategy.ID) .contains(ScriptEngineActivationStrategy.ID) .contains(ReleaseDateActivationStrategy.ID) .contains(ServerIpActivationStrategy.ID) .contains(UserRoleActivationStrategy.ID); }
@Test public void shouldNotContainCustomStrategyIfNotAdded() { assertThat(provider.getActivationStrategies()) .extracting("id") .doesNotContain(CustomActivationStrategy.class.getSimpleName()) .doesNotContain(AnotherCustomActivationStrategy.class.getSimpleName()); }