Skip to content

Commit 7783939

Browse files
committed
Move Timeplus tests to JUnit Jupiter
1 parent 922c6e3 commit 7783939

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

modules/timeplus/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@ dependencies {
44
api project(':testcontainers')
55
api project(':testcontainers-jdbc')
66

7+
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.11.0'
8+
9+
testImplementation 'org.junit.jupiter:junit-jupiter:5.13.4'
710
testImplementation project(':testcontainers-jdbc-test')
811
testRuntimeOnly 'com.timeplus:timeplus-native-jdbc:2.0.10'
912
testImplementation 'org.assertj:assertj-core:3.27.4'
1013
}
14+
15+
test {
16+
useJUnitPlatform()
17+
}

modules/timeplus/src/test/java/org/testcontainers/junit/timeplus/TimeplusJDBCDriverTest.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
package org.testcontainers.junit.timeplus;
22

3-
import org.junit.runner.RunWith;
4-
import org.junit.runners.Parameterized;
53
import org.testcontainers.jdbc.AbstractJDBCDriverTest;
64

75
import java.util.Arrays;
86
import java.util.EnumSet;
97

10-
@RunWith(Parameterized.class)
11-
public class TimeplusJDBCDriverTest extends AbstractJDBCDriverTest {
8+
class TimeplusJDBCDriverTest extends AbstractJDBCDriverTest {
129

13-
@Parameterized.Parameters(name = "{index} - {0}")
1410
public static Iterable<Object[]> data() {
1511
return Arrays.asList(
1612
new Object[][] { { "jdbc:tc:timeplus:2.3.21://hostname", EnumSet.noneOf(Options.class) } }

modules/timeplus/src/test/java/org/testcontainers/timeplus/TimeplusContainerTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package org.testcontainers.timeplus;
22

3-
import org.junit.Test;
3+
import org.junit.jupiter.api.Test;
44
import org.testcontainers.TimeplusImages;
55
import org.testcontainers.db.AbstractContainerDatabaseTest;
66

@@ -9,10 +9,10 @@
99

1010
import static org.assertj.core.api.Assertions.assertThat;
1111

12-
public class TimeplusContainerTest extends AbstractContainerDatabaseTest {
12+
class TimeplusContainerTest extends AbstractContainerDatabaseTest {
1313

1414
@Test
15-
public void testSimple() throws SQLException {
15+
void testSimple() throws SQLException {
1616
try ( // container {
1717
TimeplusContainer timeplus = new TimeplusContainer("timeplus/timeplusd:2.3.21")
1818
// }
@@ -27,7 +27,7 @@ public void testSimple() throws SQLException {
2727
}
2828

2929
@Test
30-
public void customCredentialsWithUrlParams() throws SQLException {
30+
void customCredentialsWithUrlParams() throws SQLException {
3131
try (
3232
TimeplusContainer timeplus = new TimeplusContainer(TimeplusImages.TIMEPLUS_IMAGE)
3333
.withUsername("system")

0 commit comments

Comments
 (0)