From 8388fabd5a9a257f65065153a66b820c2733f36e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sondre=20Eikanger=20Kval=C3=B8?= Date: Fri, 26 Jan 2024 13:36:50 +0100 Subject: [PATCH] Now works with hsqldb again --- embedded-db-flyway/pom.xml | 5 +++++ .../FlywayInitializerCheckConfigurationTest.java | 10 ++-------- pom.xml | 4 ++-- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/embedded-db-flyway/pom.xml b/embedded-db-flyway/pom.xml index 2eb3b6a3..139e103e 100644 --- a/embedded-db-flyway/pom.xml +++ b/embedded-db-flyway/pom.xml @@ -32,6 +32,11 @@ flyway-core ${flyway.version} + + org.flywaydb + flyway-database-hsqldb + ${flyway.version} + ${project.groupId} embedded-db-junit 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..050fb787 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,10 +1,10 @@ package org.zapodot.junit.db.plugin; import com.google.common.collect.ImmutableMap; -import org.flywaydb.core.internal.license.FlywayTeamsUpgradeRequiredException; import org.junit.Test; import java.nio.charset.StandardCharsets; +import java.sql.SQLException; import static org.junit.Assert.*; @@ -58,12 +58,6 @@ public void testBuilder() { @Test public void ignorePatterns() { - assertThrows(FlywayTeamsUpgradeRequiredException.class, () -> - FlywayInitializer.builder().withIgnoreMissingMigrations() - ); - - assertThrows(FlywayTeamsUpgradeRequiredException.class, () -> - FlywayInitializer.builder().withIgnoreMigrationPatterns("repeatable:missing") - ); + FlywayInitializer.builder().withIgnoreMigrationPatterns(); } } \ No newline at end of file diff --git a/pom.xml b/pom.xml index 62461a46..fe168a8b 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ 10.6.0 32.0.0-jre 2.2.220 - 2.7.1 + 2.7.2 2.14.2 0.8.11 11 @@ -173,8 +173,8 @@ org.hsqldb hsqldb ${hsqldb.version} - jdk8 true + jdk8 net.bytebuddy