Skip to content

Commit

Permalink
fix the checkstyle issues
Browse files Browse the repository at this point in the history
  • Loading branch information
fokion committed Sep 22, 2024
1 parent 94e48a1 commit 2df8038
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,17 @@

import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;

import static org.junit.Assert.*;
import static org.assertj.core.api.Assertions.assertThat;


public class ComposeContainerTest {

private TestLogAppender testLogAppender;

private Logger rootLogger;

@Before
Expand All @@ -44,9 +46,9 @@ public void testWithCustomDockerImage() throws IOException {
System.clearProperty("compose.container.image");
List<String> logs = testLogAppender.getLogs();
composeContainer.stop();
assertNotNull(logs);
assertThat(logs).isNotNull();
Optional<String> verification = logs.stream().filter(line -> line.contains("Creating container for image: docker:25.0.2")).findFirst();
assertTrue(verification.isPresent());
assertThat(verification.isPresent()).isTrue();
TestcontainersConfiguration.getInstance().updateUserConfig("compose.container.image", "");
}

Expand Down

0 comments on commit 2df8038

Please sign in to comment.