File tree Expand file tree Collapse file tree 3 files changed +12
-9
lines changed
src/test/java/org/testcontainers Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,16 @@ dependencies {
55 api project(' :testcontainers-jdbc' )
66
77 testRuntimeOnly ' org.postgresql:postgresql:42.7.7'
8+ testRuntimeOnly ' org.junit.platform:junit-platform-launcher:1.11.0'
9+
10+ testImplementation ' org.junit.jupiter:junit-jupiter:5.13.4'
811 testImplementation project(' :testcontainers-jdbc-test' )
912 testImplementation ' org.assertj:assertj-core:3.27.4'
1013 testImplementation ' org.questdb:questdb:9.0.2'
1114 testImplementation ' org.awaitility:awaitility:4.3.0'
1215 testImplementation ' org.apache.httpcomponents:httpclient:4.5.14'
1316}
17+
18+ test {
19+ useJUnitPlatform()
20+ }
Original file line number Diff line number Diff line change 11package org .testcontainers .jdbc .questdb ;
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 QuestDBJDBCDriverTest extends AbstractJDBCDriverTest {
8+ class QuestDBJDBCDriverTest extends AbstractJDBCDriverTest {
129
13- @ Parameterized .Parameters (name = "{index} - {0}" )
1410 public static Iterable <Object []> data () {
1511 return Arrays .asList (
1612 new Object [][] {
Original file line number Diff line number Diff line change 66import org .apache .http .impl .client .CloseableHttpClient ;
77import org .apache .http .impl .client .HttpClientBuilder ;
88import org .apache .http .util .EntityUtils ;
9- import org .junit .Test ;
9+ import org .junit .jupiter . api . Test ;
1010import org .testcontainers .QuestDBTestImages ;
1111import org .testcontainers .containers .QuestDBContainer ;
1212import org .testcontainers .db .AbstractContainerDatabaseTest ;
2020import static org .assertj .core .api .Assertions .assertThat ;
2121import static org .awaitility .Awaitility .await ;
2222
23- public class SimpleQuestDBTest extends AbstractContainerDatabaseTest {
23+ class SimpleQuestDBTest extends AbstractContainerDatabaseTest {
2424
2525 private static final String TABLE_NAME = "mytable" ;
2626
2727 @ Test
28- public void testSimple () throws SQLException {
28+ void testSimple () throws SQLException {
2929 try ( // container {
3030 QuestDBContainer questDB = new QuestDBContainer ("questdb/questdb:6.5.3" )
3131 // }
@@ -40,7 +40,7 @@ public void testSimple() throws SQLException {
4040 }
4141
4242 @ Test
43- public void testRest () throws IOException {
43+ void testRest () throws IOException {
4444 try (QuestDBContainer questdb = new QuestDBContainer (QuestDBTestImages .QUESTDB_IMAGE )) {
4545 questdb .start ();
4646 populateByInfluxLineProtocol (questdb , 1_000 );
You can’t perform that action at this time.
0 commit comments