|
|
|
@ -42,14 +42,17 @@ public class SpringApplicationHierarchyTests { |
|
|
|
@Test |
|
|
|
@Test |
|
|
|
public void testParent() { |
|
|
|
public void testParent() { |
|
|
|
SpringApplicationBuilder builder = new SpringApplicationBuilder(Child.class); |
|
|
|
SpringApplicationBuilder builder = new SpringApplicationBuilder(Child.class); |
|
|
|
|
|
|
|
builder.properties("flyway.enabled=false", "liquibase.enabled=false"); |
|
|
|
builder.parent(Parent.class); |
|
|
|
builder.parent(Parent.class); |
|
|
|
this.context = builder.run("--server.port=0"); |
|
|
|
this.context = builder.run("--server.port=0"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
@Test |
|
|
|
public void testChild() { |
|
|
|
public void testChild() { |
|
|
|
this.context = new SpringApplicationBuilder(Parent.class).child(Child.class).run( |
|
|
|
SpringApplicationBuilder builder = new SpringApplicationBuilder(Parent.class); |
|
|
|
"--server.port=0"); |
|
|
|
builder.properties("flyway.enabled=false", "liquibase.enabled=false"); |
|
|
|
|
|
|
|
builder.child(Child.class); |
|
|
|
|
|
|
|
this.context = builder.run("--server.port=0"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@EnableAutoConfiguration(exclude = { ElasticsearchDataAutoConfiguration.class, |
|
|
|
@EnableAutoConfiguration(exclude = { ElasticsearchDataAutoConfiguration.class, |
|
|
|
|