Mocks the few JUnit4 classes that testcontainers needs for successful compilation.

Signed-off-by: Oleksandra Matviienko <al.zzzeebra@gmail.com>
This commit is contained in:
Oleksandra Matviienko 2024-05-07 15:41:23 +02:00
parent 187e76652b
commit bdf577710e
2 changed files with 14 additions and 0 deletions

View File

@ -43,6 +43,11 @@
<artifactId>testcontainers</artifactId> <artifactId>testcontainers</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency>
<groupId>software.xdev</groupId>
<artifactId>testcontainers-junit4-mock</artifactId>
<scope>test</scope>
</dependency>
<dependency> <dependency>
<groupId>org.zeroturnaround</groupId> <groupId>org.zeroturnaround</groupId>
<artifactId>zt-exec</artifactId> <artifactId>zt-exec</artifactId>

View File

@ -148,6 +148,7 @@
<rest-assured.version>5.4.0</rest-assured.version> <rest-assured.version>5.4.0</rest-assured.version>
<hamcrest.version>2.2</hamcrest.version> <hamcrest.version>2.2</hamcrest.version>
<testcontainers.version>1.19.7</testcontainers.version> <testcontainers.version>1.19.7</testcontainers.version>
<testcontainers-junit4-mock.version>1.0.1</testcontainers-junit4-mock.version>
<zeroturnaround.version>1.12</zeroturnaround.version> <zeroturnaround.version>1.12</zeroturnaround.version>
<selenium.version>4.19.1</selenium.version> <selenium.version>4.19.1</selenium.version>
<webdrivermanager.version>5.8.0</webdrivermanager.version> <webdrivermanager.version>5.8.0</webdrivermanager.version>
@ -2125,6 +2126,14 @@
</exclusion> </exclusion>
</exclusions> </exclusions>
</dependency> </dependency>
<!-- Mocks the few JUnit 4 classes that testcontainers needs so that JUnit 4 can be excluded.
Fixes/Works around https://github.com/testcontainers/testcontainers-java/issues/970 -->
<dependency>
<groupId>software.xdev</groupId>
<artifactId>testcontainers-junit4-mock</artifactId>
<version>${testcontainers-junit4-mock.version}</version>
<scope>test</scope>
</dependency>
<dependency> <dependency>
<groupId>org.zeroturnaround</groupId> <groupId>org.zeroturnaround</groupId>
<artifactId>zt-exec</artifactId> <artifactId>zt-exec</artifactId>