File tree Expand file tree Collapse file tree 3 files changed +13
-10
lines changed
src/test/java/org/testcontainers Expand file tree Collapse file tree 3 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,14 @@ description = "Testcontainers :: JDBC :: Trino"
33dependencies {
44 api project(' :testcontainers-jdbc' )
55
6+ testRuntimeOnly ' org.junit.platform:junit-platform-launcher:1.11.0'
7+
8+ testImplementation ' org.junit.jupiter:junit-jupiter:5.13.4'
69 testImplementation project(' :testcontainers-jdbc-test' )
710 testRuntimeOnly ' io.trino:trino-jdbc:476'
811 compileOnly ' org.jetbrains:annotations:26.0.2'
912}
13+
14+ test {
15+ useJUnitPlatform()
16+ }
Original file line number Diff line number Diff line change 11package org .testcontainers .containers ;
22
3- import org .junit .Test ;
3+ import org .junit .jupiter . api . Test ;
44import org .testcontainers .TrinoTestImages ;
55
66import java .sql .Connection ;
99
1010import static org .assertj .core .api .Assertions .assertThat ;
1111
12- public class TrinoContainerTest {
12+ class TrinoContainerTest {
1313
1414 @ Test
15- public void testSimple () throws Exception {
15+ void testSimple () throws Exception {
1616 try ( // container {
1717 TrinoContainer trino = new TrinoContainer ("trinodb/trino:352" )
1818 // }
@@ -33,7 +33,7 @@ public void testSimple() throws Exception {
3333 }
3434
3535 @ Test
36- public void testSpecificVersion () throws Exception {
36+ void testSpecificVersion () throws Exception {
3737 try (TrinoContainer trino = new TrinoContainer (TrinoTestImages .TRINO_PREVIOUS_VERSION_TEST_IMAGE )) {
3838 trino .start ();
3939 try (
@@ -50,7 +50,7 @@ public void testSpecificVersion() throws Exception {
5050 }
5151
5252 @ Test
53- public void testInitScript () throws Exception {
53+ void testInitScript () throws Exception {
5454 try (TrinoContainer trino = new TrinoContainer (TrinoTestImages .TRINO_TEST_IMAGE )) {
5555 trino .withInitScript ("initial.sql" );
5656 trino .start ();
Original file line number Diff line number Diff line change 11package org .testcontainers .jdbc .trino ;
22
3- import org .junit .runner .RunWith ;
4- import org .junit .runners .Parameterized ;
53import org .testcontainers .jdbc .AbstractJDBCDriverTest ;
64
75import java .util .Arrays ;
86import java .util .EnumSet ;
97
10- @ RunWith (Parameterized .class )
11- public class TrinoJDBCDriverTest extends AbstractJDBCDriverTest {
8+ class TrinoJDBCDriverTest extends AbstractJDBCDriverTest {
129
13- @ Parameterized .Parameters (name = "{index} - {0}" )
1410 public static Iterable <Object []> data () {
1511 return Arrays .asList (
1612 new Object [][] { //
You can’t perform that action at this time.
0 commit comments