use of org.springframework.context.EnvironmentAware in project spring-security by spring-projects.
the class AutowireBeanFactoryObjectPostProcessorTests method postProcessWhenEnvironmentAwareThenAwareInvoked.
@Test
public void postProcessWhenEnvironmentAwareThenAwareInvoked() {
this.spring.register(Config.class).autowire();
EnvironmentAware toPostProcess = mock(EnvironmentAware.class);
this.objectObjectPostProcessor.postProcess(toPostProcess);
verify(toPostProcess).setEnvironment(isNotNull());
}
Aggregations