Skip to content

Commit

Permalink
chore: upgrade test framework allowing to upgrade parent pom (#130)
Browse files Browse the repository at this point in the history
* chore: changes to allow bumping parent-pom

* chore: fix package name
  • Loading branch information
filipelautert authored Oct 31, 2024
1 parent 56e4ae4 commit 30fc4b6
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 4 deletions.
34 changes: 33 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-parent-pom</artifactId>
<version>0.4.0</version> <!-- Replace with the desired version -->
<version>0.5.0</version> <!-- Replace with the desired version -->
</parent>

<groupId>org.liquibase.ext</groupId>
Expand All @@ -20,6 +20,8 @@

<properties>
<liquibase.version>4.29.2</liquibase.version>
<junit.version>5.11.3</junit.version>
<junit-platform.version>1.11.3</junit-platform.version>
</properties>

<dependencies>
Expand All @@ -35,6 +37,36 @@
<version>${slf4j.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-suite</artifactId>
<version>${junit-platform.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
<version>${junit-platform.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

<scm>
Expand Down
Original file line number Diff line number Diff line change
@@ -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());
}

}
Original file line number Diff line number Diff line change
@@ -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.*;
Expand All @@ -12,4 +11,4 @@ public void getPriority() {
assertEquals(1000, new NoOpLockService().getPriority());
}

}
}

0 comments on commit 30fc4b6

Please sign in to comment.