This commit is contained in:
Andy Wilkinson
2018-03-17 15:28:05 +00:00
parent 626e488da5
commit 72e36eadae
3 changed files with 14 additions and 23 deletions

View File

@@ -83,13 +83,10 @@ public class IntegrationAutoConfigurationTests {
@Test
public void parentContext() {
this.contextRunner.run((context) -> {
this.contextRunner.withParent(context)
.withPropertyValues("spring.jmx.default_domain=org.foo")
.run((child) -> {
assertThat(child).hasSingleBean(HeaderChannelRegistry.class);
});
});
this.contextRunner.run((context) -> this.contextRunner.withParent(context)
.withPropertyValues("spring.jmx.default_domain=org.foo")
.run((child) -> assertThat(child)
.hasSingleBean(HeaderChannelRegistry.class)));
}
@Test