diff --git a/embedded-db-flyway/pom.xml b/embedded-db-flyway/pom.xml index 2eb3b6a3..52c9b0e0 100644 --- a/embedded-db-flyway/pom.xml +++ b/embedded-db-flyway/pom.xml @@ -68,6 +68,21 @@ test + + + add-flyway-hsqldb-module + + [17,) + + + + org.flywaydb + flyway-database-hsqldb + ${flyway.version} + + + + diff --git a/embedded-db-flyway/src/test/java/org/zapodot/junit/db/plugin/FlywayInitializerCheckConfigurationTest.java b/embedded-db-flyway/src/test/java/org/zapodot/junit/db/plugin/FlywayInitializerCheckConfigurationTest.java index 63b4169a..7cfc0a26 100644 --- a/embedded-db-flyway/src/test/java/org/zapodot/junit/db/plugin/FlywayInitializerCheckConfigurationTest.java +++ b/embedded-db-flyway/src/test/java/org/zapodot/junit/db/plugin/FlywayInitializerCheckConfigurationTest.java @@ -1,12 +1,12 @@ package org.zapodot.junit.db.plugin; import com.google.common.collect.ImmutableMap; -import org.flywaydb.core.internal.license.FlywayTeamsUpgradeRequiredException; -import org.junit.Test; +import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.api.Test; import java.nio.charset.StandardCharsets; -import static org.junit.Assert.*; +import static org.junit.jupiter.api.Assertions.*; public class FlywayInitializerCheckConfigurationTest { @@ -22,6 +22,7 @@ public class FlywayInitializerCheckConfigurationTest { public static final String TARGET_VERSION = "2"; public static final String LOCATION = "classpath:placeholder"; + @DisplayName("Test builder") @Test public void testBuilder() { final FlywayInitializer flywayInitializer = new FlywayInitializer.Builder().withInstalledBy(INSTALLED_BY) @@ -56,14 +57,4 @@ public void testBuilder() { } - @Test - public void ignorePatterns() { - assertThrows(FlywayTeamsUpgradeRequiredException.class, () -> - FlywayInitializer.builder().withIgnoreMissingMigrations() - ); - - assertThrows(FlywayTeamsUpgradeRequiredException.class, () -> - FlywayInitializer.builder().withIgnoreMigrationPatterns("repeatable:missing") - ); - } } \ No newline at end of file diff --git a/pom.xml b/pom.xml index 13b57096..1ffda8ac 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ 1.14.18 4.3.0 - 9.8.3 + 10.15.2 33.2.1-jre 2.2.224 2.7.3 @@ -93,6 +93,7 @@ 5.3.37 + 9.22.3