Skip to content

Commit cf6d15c

Browse files
authored
Remove visible assertions dependency (#4010)
1 parent 99f5fac commit cf6d15c

File tree

16 files changed

+17
-4
lines changed

16 files changed

+17
-4
lines changed

core/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,6 @@ dependencies {
178178
exclude(group: 'org.jetbrains', module: 'annotations')
179179
}
180180

181-
compile 'org.rnorth.visible-assertions:visible-assertions:2.1.2'
182-
183181
compile "com.github.docker-java:docker-java-api:3.2.8"
184182

185183
shaded ('com.github.docker-java:docker-java-core:3.2.8') {
@@ -218,6 +216,7 @@ dependencies {
218216
// Synthetic JAR used for MountableFileTest and DirectoryTarResourceTest
219217
testCompile files('testlib/repo/fakejar/fakejar/0/fakejar-0.jar')
220218

219+
testCompile 'org.rnorth.visible-assertions:visible-assertions:2.1.2'
221220
testCompile 'org.assertj:assertj-core:3.18.1'
222221
testCompile project(':test-support')
223222

core/src/main/java/org/testcontainers/containers/GenericContainer.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@
7171
import org.rnorth.ducttape.ratelimits.RateLimiter;
7272
import org.rnorth.ducttape.ratelimits.RateLimiterBuilder;
7373
import org.rnorth.ducttape.unreliables.Unreliables;
74-
import org.rnorth.visibleassertions.VisibleAssertions;
7574
import org.slf4j.Logger;
7675
import org.testcontainers.DockerClientFactory;
7776
import org.testcontainers.UnstableAPI;
@@ -748,7 +747,7 @@ private void applyConfiguration(CreateContainerCmd createCommand) {
748747
boolean shouldCheckFileMountingSupport = binds.size() > 0 && !TestcontainersConfiguration.getInstance().isDisableChecks();
749748
if (shouldCheckFileMountingSupport) {
750749
if (!DockerClientFactory.instance().isFileMountingSupported()) {
751-
VisibleAssertions.warn(
750+
logger().warn(
752751
"Unable to mount a file from test host into a running container. " +
753752
"This may be a misconfiguration or limitation of your Docker environment. " +
754753
"Some features might not work."

examples/disque-job-queue/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ dependencies {
1515
testImplementation 'ch.qos.logback:logback-classic:1.2.3'
1616
testImplementation 'org.mockito:mockito-all:1.10.19'
1717
testImplementation 'org.testcontainers:testcontainers'
18+
testImplementation 'org.rnorth.visible-assertions:visible-assertions:2.1.2'
1819
}

examples/redis-backed-cache-testng/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ dependencies {
1414
testImplementation 'org.testcontainers:testcontainers'
1515
testImplementation 'ch.qos.logback:logback-classic:1.2.3'
1616
testImplementation 'org.testng:testng:7.3.0'
17+
testImplementation 'org.rnorth.visible-assertions:visible-assertions:2.1.2'
1718
}
1819

1920
test {

examples/redis-backed-cache/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ dependencies {
1414
testImplementation 'org.testcontainers:testcontainers'
1515
testImplementation 'junit:junit:4.13.1'
1616
testImplementation 'ch.qos.logback:logback-classic:1.2.3'
17+
testImplementation 'org.rnorth.visible-assertions:visible-assertions:2.1.2'
1718
}

examples/selenium-container/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ dependencies {
1515
implementation 'org.springframework.boot:spring-boot-starter-web'
1616
testImplementation 'org.springframework.boot:spring-boot-starter-test'
1717
testImplementation 'org.testcontainers:selenium'
18+
testImplementation 'org.rnorth.visible-assertions:visible-assertions:2.1.2'
1819
}

examples/singleton-container/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ dependencies {
1515

1616
testImplementation 'ch.qos.logback:logback-classic:1.2.3'
1717
testImplementation 'org.testcontainers:testcontainers'
18+
testImplementation 'org.rnorth.visible-assertions:visible-assertions:2.1.2'
1819
}

examples/solr-container/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ dependencies {
1414

1515
testImplementation 'org.testcontainers:testcontainers'
1616
testImplementation 'org.testcontainers:solr'
17+
testImplementation 'org.rnorth.visible-assertions:visible-assertions:2.1.2'
1718

1819
}

examples/spring-boot/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ dependencies {
1717
runtimeOnly 'org.postgresql:postgresql'
1818
testImplementation 'org.springframework.boot:spring-boot-starter-test'
1919
testImplementation 'org.testcontainers:postgresql'
20+
testImplementation 'org.rnorth.visible-assertions:visible-assertions:2.1.2'
2021
}

modules/dynalite/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ dependencies {
55

66
compileOnly 'com.amazonaws:aws-java-sdk-dynamodb:1.11.929'
77
testCompile 'com.amazonaws:aws-java-sdk-dynamodb:1.11.929'
8+
9+
testCompile 'org.rnorth.visible-assertions:visible-assertions:2.1.2'
810
}

0 commit comments

Comments
 (0)