Skip to content

Commit

Permalink
Removed redundant withExposedPorts and toString
Browse files Browse the repository at this point in the history
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
  • Loading branch information
dmatej committed Oct 4, 2024
1 parent 38ad5c2 commit 6d4802f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class AsadminIT {
@SuppressWarnings({"rawtypes", "resource"})
@Container
private final GenericContainer server = new GenericContainer<>(System.getProperty("docker.glassfish.image"))
.withCommand("asadmin start-domain").withExposedPorts(8080).withExposedPorts(8080)
.withCommand("asadmin start-domain").withExposedPorts(8080)
.withLogConsumer(o -> System.err.print("GF: " + o.getUtf8String()));

@Test
Expand All @@ -57,6 +57,6 @@ void getRoot() throws Exception {
} finally {
connection.disconnect();
}
assertThat(content.toString(), stringContainsInOrder("Eclipse GlassFish", "index.html", "production-quality"));
assertThat(content, stringContainsInOrder("Eclipse GlassFish", "index.html", "production-quality"));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ void getRoot() throws Exception {
} finally {
connection.disconnect();
}
assertThat(content.toString(), stringContainsInOrder("Eclipse GlassFish", "index.html", "production-quality"));
assertThat(content, stringContainsInOrder("Eclipse GlassFish", "index.html", "production-quality"));
}
}

0 comments on commit 6d4802f

Please sign in to comment.