File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
core/src/test/java/org/testcontainers/containers Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1212
1313import java .io .File ;
1414import java .io .IOException ;
15- import java .nio .file .Files ;
1615import java .util .ArrayList ;
1716import java .util .List ;
1817import java .util .Optional ;
1918
20- import static org .junit .Assert .*;
19+ import static org .assertj .core .api .Assertions .assertThat ;
20+
2121
2222public class ComposeContainerTest {
23+
2324 private TestLogAppender testLogAppender ;
25+
2426 private Logger rootLogger ;
2527
2628 @ Before
@@ -44,9 +46,9 @@ public void testWithCustomDockerImage() throws IOException {
4446 System .clearProperty ("compose.container.image" );
4547 List <String > logs = testLogAppender .getLogs ();
4648 composeContainer .stop ();
47- assertNotNull (logs );
49+ assertThat (logs ). isNotNull ( );
4850 Optional <String > verification = logs .stream ().filter (line -> line .contains ("Creating container for image: docker:25.0.2" )).findFirst ();
49- assertTrue (verification .isPresent ());
51+ assertThat (verification .isPresent ()). isTrue ( );
5052 TestcontainersConfiguration .getInstance ().updateUserConfig ("compose.container.image" , "" );
5153 }
5254
You can’t perform that action at this time.
0 commit comments