Disable DB migrations in ApplicationHierarchyTests

pull/3452/head
Phillip Webb 10 years ago
parent 52643529a3
commit 85535f0882

@ -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,

Loading…
Cancel
Save