diff --git a/src/test/java/org/glassfish/main/distributions/docker/AsadminIT.java b/src/test/java/org/glassfish/main/distributions/docker/AsadminIT.java index 73fa9b3..93f717e 100644 --- a/src/test/java/org/glassfish/main/distributions/docker/AsadminIT.java +++ b/src/test/java/org/glassfish/main/distributions/docker/AsadminIT.java @@ -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 @@ -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")); } } diff --git a/src/test/java/org/glassfish/main/distributions/docker/StartServIT.java b/src/test/java/org/glassfish/main/distributions/docker/StartServIT.java index b759666..dc308b4 100644 --- a/src/test/java/org/glassfish/main/distributions/docker/StartServIT.java +++ b/src/test/java/org/glassfish/main/distributions/docker/StartServIT.java @@ -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")); } }