#2283 - ddl-generator - Refactor tidy DefaultDbMigration etc

This commit is contained in:
rbygrave committed 2021-08-02 20:49:30 +12:00
1 parent 71223895ac
commit 4ba26ee7b7
4 files changed
+25 -74

No files matched your search

@@ -54,8 +54,8 @@ public class DbMigrationDropHistoryTest {
migration.setServer(server);
// First, we clean up the output-directory
assertThat(migration.getMigrationDirectory().getAbsolutePath()).contains("migrationtest-history");
Files.walk(migration.getMigrationDirectory().toPath())
assertThat(migration.migrationDirectory().getAbsolutePath()).contains("migrationtest-history");
Files.walk(migration.migrationDirectory().toPath())
.filter(Files::isRegularFile).map(Path::toFile).forEach(File::delete);
// then we generate migration scripts for v1_0
@@ -70,8 +70,8 @@ public class DbMigrationGenerateTest {
migration.setServer(server);
// First, we clean up the output-directory
assertThat(migration.getMigrationDirectory().getAbsolutePath()).contains("migrationtest");
Files.walk(migration.getMigrationDirectory().toPath())
assertThat(migration.migrationDirectory().getAbsolutePath()).contains("migrationtest");
Files.walk(migration.migrationDirectory().toPath())
.filter(Files::isRegularFile).map(Path::toFile).forEach(File::delete);
// then we generate migration scripts for v1_0