Changes along with 3.1.3 backport
Aside from minor polishing, this change sets the "systemProperties" and "systemEnvironment" beans at each factory level as well. Issue: SPR-9756 Issue: SPR-9764
This commit is contained in:
@@ -17,19 +17,18 @@
|
||||
package org.springframework.context.support;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.ConfigurableApplicationContext;
|
||||
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
|
||||
import org.springframework.core.env.ConfigurableEnvironment;
|
||||
import org.springframework.core.env.Environment;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.*;
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.*;
|
||||
|
||||
/**
|
||||
* Tests covering the integration of {@link Environment} into {@link ApplicationContext}
|
||||
* hierarchies.
|
||||
* Tests covering the integration of {@link Environment} into {@link ApplicationContext} hierarchies.
|
||||
*
|
||||
* @author Chris Beams
|
||||
*/
|
||||
@@ -51,4 +50,5 @@ public class EnvironmentIntegrationTests {
|
||||
sameInstance(child.getEnvironment())));
|
||||
assertThat("expected child ctx env", env, sameInstance(child.getEnvironment()));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user