Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions modules/r2dbc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,17 @@ dependencies {
api project(':testcontainers')
api 'io.r2dbc:r2dbc-spi:0.9.0.RELEASE'

testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.11.0'

testImplementation 'org.junit.jupiter:junit-jupiter:5.13.4'
testImplementation 'org.assertj:assertj-core:3.27.4'
testImplementation 'io.r2dbc:r2dbc-postgresql:0.8.13.RELEASE'
testImplementation project(':testcontainers-postgresql')

testFixturesImplementation 'io.projectreactor:reactor-core:3.7.9'
testFixturesImplementation 'org.assertj:assertj-core:3.27.4'
}

test {
useJUnitPlatform()
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import io.r2dbc.spi.ConnectionFactories;
import io.r2dbc.spi.ConnectionFactory;
import io.r2dbc.spi.Result;
import org.junit.Test;
import org.junit.jupiter.api.Test;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

Expand All @@ -15,10 +15,10 @@
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;

public class TestcontainersR2DBCConnectionFactoryTest {
class TestcontainersR2DBCConnectionFactoryTest {

@Test
public void failsOnUnknownProvider() {
void failsOnUnknownProvider() {
String nonExistingProvider = UUID.randomUUID().toString();
assertThatThrownBy(() -> {
ConnectionFactories.get(String.format("r2dbc:tc:%s:///db", nonExistingProvider));
Expand All @@ -28,7 +28,7 @@ public void failsOnUnknownProvider() {
}

@Test
public void reusesUntilConnectionFactoryIsClosed() {
void reusesUntilConnectionFactoryIsClosed() {
String url = "r2dbc:tc:postgresql:///db?TC_IMAGE_TAG=10-alpine";
ConnectionFactory connectionFactory = ConnectionFactories.get(url);

Expand Down
Loading