|
|
@ -184,7 +184,7 @@ public class SpringApplicationBuilderTests {
|
|
|
|
ExampleConfig.class).profiles("node").properties("transport=redis")
|
|
|
|
ExampleConfig.class).profiles("node").properties("transport=redis")
|
|
|
|
.child(ChildConfig.class).profiles("admin").web(false);
|
|
|
|
.child(ChildConfig.class).profiles("admin").web(false);
|
|
|
|
this.context = application.run();
|
|
|
|
this.context = application.run();
|
|
|
|
assertThat(this.context.getEnvironment().acceptsProfiles("node"), is(true));
|
|
|
|
assertThat(this.context.getEnvironment().acceptsProfiles("node", "admin"), is(true));
|
|
|
|
assertThat(this.context.getParent().getEnvironment().acceptsProfiles("admin"),
|
|
|
|
assertThat(this.context.getParent().getEnvironment().acceptsProfiles("admin"),
|
|
|
|
is(false));
|
|
|
|
is(false));
|
|
|
|
}
|
|
|
|
}
|
|
|
|