org.springframework.boot.env.EnvironmentPostProcessor Java Examples

The following examples show how to use org.springframework.boot.env.EnvironmentPostProcessor. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BootstrapConfigTest.java    From apollo with Apache License 2.0 5 votes vote down vote up
@Test
public void test() {
  List<EnvironmentPostProcessor> processorList =  SpringFactoriesLoader.loadFactories(EnvironmentPostProcessor.class, getClass().getClassLoader());

  Boolean containsApollo = !Collections2.filter(processorList, new Predicate<EnvironmentPostProcessor>() {
        @Override
        public boolean apply(EnvironmentPostProcessor input) {
            return input instanceof ApolloApplicationContextInitializer;
        }
    }).isEmpty();
  Assert.assertTrue(containsApollo);
}