Skip to content

Commit

Permalink
Updated version of testcontainers
Browse files Browse the repository at this point in the history
  • Loading branch information
alex268 committed Feb 12, 2024
1 parent 786b93f commit 0ad0477
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<log4j2.version>2.17.2</log4j2.version>
<gson.version>2.8.9</gson.version>
<mockito.version>4.11.0</mockito.version>
<testcontainers.version>1.17.6</testcontainers.version>
<testcontainers.version>1.19.3</testcontainers.version>
</properties>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.util.function.Consumer;

import com.github.dockerjava.api.command.CreateContainerCmd;
import org.junit.After;
import org.junit.Assert;
import org.junit.Test;
import org.mockito.Mockito;
import org.testcontainers.core.CreateContainerCmdModifier;
import org.testcontainers.utility.ThrowingFunction;

import tech.ydb.core.grpc.GrpcTransport;
Expand Down Expand Up @@ -79,8 +79,8 @@ private void assertCreateContainerCmdModifiers(YdbMockContainer container) {
Mockito.when(cmd.withName(Mockito.any())).thenReturn(cmd);
Mockito.when(cmd.withHostName(Mockito.any())).thenReturn(cmd);

for (Consumer<CreateContainerCmd> modifier: container.getCreateContainerCmdModifiers()) {
modifier.accept(cmd);
for (CreateContainerCmdModifier modifier: container.getCreateContainerCmdModifiers()) {
modifier.modify(cmd);
}

Mockito.verify(cmd, Mockito.times(1)).withName("ydb-" + DockerMock.UUID_MOCKED); // from random UUID
Expand Down
1 change: 1 addition & 0 deletions tests/junit4-support/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
1 change: 1 addition & 0 deletions tests/junit5-support/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
</project>

0 comments on commit 0ad0477

Please sign in to comment.