From 30fc4b6d88bc776cadcea922a7661028ca6cdc64 Mon Sep 17 00:00:00 2001 From: filipe Date: Thu, 31 Oct 2024 13:27:08 -0300 Subject: [PATCH] chore: upgrade test framework allowing to upgrade parent pom (#130) * chore: changes to allow bumping parent-pom * chore: fix package name --- pom.xml | 34 ++++++++++++++++++- .../ext/NoChangelogLockConfigurationTest.java | 14 ++++++++ .../ext/NoOpLockServiceTest.java | 5 ++- 3 files changed, 49 insertions(+), 4 deletions(-) create mode 100644 src/test/java/liquibase/lockservice/ext/NoChangelogLockConfigurationTest.java rename src/test/java/liquibase/{locksevice => lockservice}/ext/NoOpLockServiceTest.java (71%) diff --git a/pom.xml b/pom.xml index 8058f79..6584647 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ org.liquibase liquibase-parent-pom - 0.4.0 + 0.5.0 org.liquibase.ext @@ -20,6 +20,8 @@ 4.29.2 + 5.11.3 + 1.11.3 @@ -35,6 +37,36 @@ ${slf4j.version} test + + org.junit.jupiter + junit-jupiter-api + ${junit.version} + test + + + org.junit.platform + junit-platform-suite + ${junit-platform.version} + test + + + org.junit.platform + junit-platform-launcher + ${junit-platform.version} + test + + + org.junit.vintage + junit-vintage-engine + ${junit.version} + test + + + org.junit.jupiter + junit-jupiter-engine + ${junit.version} + test + diff --git a/src/test/java/liquibase/lockservice/ext/NoChangelogLockConfigurationTest.java b/src/test/java/liquibase/lockservice/ext/NoChangelogLockConfigurationTest.java new file mode 100644 index 0000000..a08cb72 --- /dev/null +++ b/src/test/java/liquibase/lockservice/ext/NoChangelogLockConfigurationTest.java @@ -0,0 +1,14 @@ +package liquibase.lockservice.ext; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.assertFalse; + +class NoChangelogLockConfigurationTest { + + @Test + void testDisabledByDefault() { + assertFalse(NoChangelogLockConfiguration.TABLE_ENABLED.getCurrentValue()); + } + +} diff --git a/src/test/java/liquibase/locksevice/ext/NoOpLockServiceTest.java b/src/test/java/liquibase/lockservice/ext/NoOpLockServiceTest.java similarity index 71% rename from src/test/java/liquibase/locksevice/ext/NoOpLockServiceTest.java rename to src/test/java/liquibase/lockservice/ext/NoOpLockServiceTest.java index 2796c8b..686b4e8 100644 --- a/src/test/java/liquibase/locksevice/ext/NoOpLockServiceTest.java +++ b/src/test/java/liquibase/lockservice/ext/NoOpLockServiceTest.java @@ -1,6 +1,5 @@ -package liquibase.locksevice.ext; +package liquibase.lockservice.ext; -import liquibase.lockservice.ext.NoOpLockService; import org.junit.Test; import static org.junit.Assert.*; @@ -12,4 +11,4 @@ public void getPriority() { assertEquals(1000, new NoOpLockService().getPriority()); } -} \ No newline at end of file +}