Polish
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2013 the original author or authors.
|
||||
* Copyright 2012-2014 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -29,4 +29,5 @@ public class SampleLiquibaseApplication {
|
||||
public static void main(String[] args) throws Exception {
|
||||
SpringApplication.run(SampleLiquibaseApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -41,14 +41,20 @@ public class SampleLiquibaseApplicationTests {
|
||||
}
|
||||
}
|
||||
String output = this.outputCapture.toString();
|
||||
assertTrue("Wrong output: " + output,
|
||||
output.contains("Successfully acquired change log lock") &&
|
||||
output.contains("Creating database history table with name: PUBLIC.DATABASECHANGELOG") &&
|
||||
output.contains("Table person created") &&
|
||||
output.contains("ChangeSet classpath:/db/changelog/db.changelog-master.yaml::1::marceloverdijk ran successfully") &&
|
||||
output.contains("New row inserted into person") &&
|
||||
output.contains("ChangeSet classpath:/db/changelog/db.changelog-master.yaml::2::marceloverdijk ran successfully") &&
|
||||
output.contains("Successfully released change log lock"));
|
||||
assertTrue(
|
||||
"Wrong output: " + output,
|
||||
output.contains("Successfully acquired change log lock")
|
||||
&& output.contains("Creating database history "
|
||||
+ "table with name: PUBLIC.DATABASECHANGELOG")
|
||||
&& output.contains("Table person created")
|
||||
&& output.contains("ChangeSet classpath:/db/"
|
||||
+ "changelog/db.changelog-master.yaml::1::"
|
||||
+ "marceloverdijk ran successfully")
|
||||
&& output.contains("New row inserted into person")
|
||||
&& output.contains("ChangeSet classpath:/db/changelog/"
|
||||
+ "db.changelog-master.yaml::2::"
|
||||
+ "marceloverdijk ran successfully")
|
||||
&& output.contains("Successfully released change log lock"));
|
||||
}
|
||||
|
||||
private boolean serverNotRunning(IllegalStateException ex) {
|
||||
|
||||
Reference in New Issue
Block a user