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 {
8
8
api project(' :testcontainers' )
9
9
api ' io.r2dbc:r2dbc-spi:0.9.0.RELEASE'
10
10
11
+ testRuntimeOnly ' org.junit.platform:junit-platform-launcher:1.11.0'
12
+
13
+ testImplementation ' org.junit.jupiter:junit-jupiter:5.13.4'
11
14
testImplementation ' org.assertj:assertj-core:3.27.4'
12
15
testImplementation ' io.r2dbc:r2dbc-postgresql:0.8.13.RELEASE'
13
16
testImplementation project(' :testcontainers-postgresql' )
14
17
15
18
testFixturesImplementation ' io.projectreactor:reactor-core:3.7.9'
16
19
testFixturesImplementation ' org.assertj:assertj-core:3.27.4'
17
20
}
21
+
22
+ test {
23
+ useJUnitPlatform()
24
+ }
Original file line number Diff line number Diff line change 6
6
import io .r2dbc .spi .ConnectionFactories ;
7
7
import io .r2dbc .spi .ConnectionFactory ;
8
8
import io .r2dbc .spi .Result ;
9
- import org .junit .Test ;
9
+ import org .junit .jupiter . api . Test ;
10
10
import reactor .core .publisher .Flux ;
11
11
import reactor .core .publisher .Mono ;
12
12
15
15
import static org .assertj .core .api .Assertions .assertThat ;
16
16
import static org .assertj .core .api .Assertions .assertThatThrownBy ;
17
17
18
- public class TestcontainersR2DBCConnectionFactoryTest {
18
+ class TestcontainersR2DBCConnectionFactoryTest {
19
19
20
20
@ Test
21
- public void failsOnUnknownProvider () {
21
+ void failsOnUnknownProvider () {
22
22
String nonExistingProvider = UUID .randomUUID ().toString ();
23
23
assertThatThrownBy (() -> {
24
24
ConnectionFactories .get (String .format ("r2dbc:tc:%s:///db" , nonExistingProvider ));
@@ -28,7 +28,7 @@ public void failsOnUnknownProvider() {
28
28
}
29
29
30
30
@ Test
31
- public void reusesUntilConnectionFactoryIsClosed () {
31
+ void reusesUntilConnectionFactoryIsClosed () {
32
32
String url = "r2dbc:tc:postgresql:///db?TC_IMAGE_TAG=10-alpine" ;
33
33
ConnectionFactory connectionFactory = ConnectionFactories .get (url );
34
34
You can’t perform that action at this time.
0 commit comments