Skip to content

Commit

Permalink
[SRVLOGIC-253] Skip shouldGetDockerImageName test if no docker (#3440)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmunozfe authored Mar 14, 2024
1 parent 5ac6c8a commit efb77cf
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.testcontainers.DockerClientFactory;

import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assumptions.assumeTrue;
import static org.mockito.Mockito.doNothing;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.spy;
Expand Down Expand Up @@ -51,6 +53,7 @@ void shouldGetMapperPort() {

@Test
void shouldGetDockerImageName() {
assumeTrue(DockerClientFactory.instance().isDockerAvailable(), "Aborting test: docker env not found");
assertThat(container.getDockerImageName()).isEqualTo(System.getProperty(Constants.CONTAINER_NAME_PREFIX + KogitoMongoDBContainer.NAME));
}
}

0 comments on commit efb77cf

Please sign in to comment.