List of usage examples for org.springframework.boot.test.context DefaultTestExecutionListenersPostProcessor postProcessDefaultTestExecutionListeners
Set<Class<? extends TestExecutionListener>> postProcessDefaultTestExecutionListeners( Set<Class<? extends TestExecutionListener>> listeners);
From source file:org.springframework.boot.test.context.SpringBootTestContextBootstrapper.java
@Override protected Set<Class<? extends TestExecutionListener>> getDefaultTestExecutionListenerClasses() { Set<Class<? extends TestExecutionListener>> listeners = super.getDefaultTestExecutionListenerClasses(); List<DefaultTestExecutionListenersPostProcessor> postProcessors = SpringFactoriesLoader .loadFactories(DefaultTestExecutionListenersPostProcessor.class, getClass().getClassLoader()); for (DefaultTestExecutionListenersPostProcessor postProcessor : postProcessors) { listeners = postProcessor.postProcessDefaultTestExecutionListeners(listeners); }/*from ww w. j av a 2s. c o m*/ return listeners; }