File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
src/test/java/org/testcontainers/r2dbc Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,17 @@ dependencies {
88 api project(' :testcontainers' )
99 api ' io.r2dbc:r2dbc-spi:0.9.0.RELEASE'
1010
11+ testRuntimeOnly ' org.junit.platform:junit-platform-launcher:1.11.0'
12+
13+ testImplementation ' org.junit.jupiter:junit-jupiter:5.13.4'
1114 testImplementation ' org.assertj:assertj-core:3.27.4'
1215 testImplementation ' io.r2dbc:r2dbc-postgresql:0.8.13.RELEASE'
1316 testImplementation project(' :testcontainers-postgresql' )
1417
1518 testFixturesImplementation ' io.projectreactor:reactor-core:3.7.9'
1619 testFixturesImplementation ' org.assertj:assertj-core:3.27.4'
1720}
21+
22+ test {
23+ useJUnitPlatform()
24+ }
Original file line number Diff line number Diff line change 66import io .r2dbc .spi .ConnectionFactories ;
77import io .r2dbc .spi .ConnectionFactory ;
88import io .r2dbc .spi .Result ;
9- import org .junit .Test ;
9+ import org .junit .jupiter . api . Test ;
1010import reactor .core .publisher .Flux ;
1111import reactor .core .publisher .Mono ;
1212
1515import static org .assertj .core .api .Assertions .assertThat ;
1616import static org .assertj .core .api .Assertions .assertThatThrownBy ;
1717
18- public class TestcontainersR2DBCConnectionFactoryTest {
18+ class TestcontainersR2DBCConnectionFactoryTest {
1919
2020 @ Test
21- public void failsOnUnknownProvider () {
21+ void failsOnUnknownProvider () {
2222 String nonExistingProvider = UUID .randomUUID ().toString ();
2323 assertThatThrownBy (() -> {
2424 ConnectionFactories .get (String .format ("r2dbc:tc:%s:///db" , nonExistingProvider ));
@@ -28,7 +28,7 @@ public void failsOnUnknownProvider() {
2828 }
2929
3030 @ Test
31- public void reusesUntilConnectionFactoryIsClosed () {
31+ void reusesUntilConnectionFactoryIsClosed () {
3232 String url = "r2dbc:tc:postgresql:///db?TC_IMAGE_TAG=10-alpine" ;
3333 ConnectionFactory connectionFactory = ConnectionFactories .get (url );
3434
You can’t perform that action at this time.
0 commit comments