|
|
|
@ -216,7 +216,8 @@ public class BootstrapConfigurationTests {
@@ -216,7 +216,8 @@ public class BootstrapConfigurationTests {
|
|
|
|
|
assertEquals(this.context.getEnvironment().getPropertySources().get("bootstrap"), |
|
|
|
|
((ConfigurableEnvironment) this.context.getParent().getEnvironment()) |
|
|
|
|
.getPropertySources().get("bootstrap")); |
|
|
|
|
assertEquals("app", this.context.getId()); |
|
|
|
|
//TODO: is this correct based on the new boot 2 ContextIdApplicationContextInitializer
|
|
|
|
|
assertEquals("main-1", this.context.getId()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
@ -248,7 +249,8 @@ public class BootstrapConfigurationTests {
@@ -248,7 +249,8 @@ public class BootstrapConfigurationTests {
|
|
|
|
|
// other.properties (the bootstrap properties this time)
|
|
|
|
|
assertEquals("main", this.context.getParent().getEnvironment() |
|
|
|
|
.getProperty("spring.application.name")); |
|
|
|
|
assertEquals("main", this.context.getId()); |
|
|
|
|
//TODO: is this correct based on the new boot 2 ContextIdApplicationContextInitializer
|
|
|
|
|
assertEquals("main-1", this.context.getId()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|