diff --git a/mail/src/test/java/org/jboss/as/quickstarts/mail/BasicRuntimeIT.java b/mail/src/test/java/org/jboss/as/quickstarts/mail/BasicRuntimeIT.java index 12ce2b4756..1587436719 100644 --- a/mail/src/test/java/org/jboss/as/quickstarts/mail/BasicRuntimeIT.java +++ b/mail/src/test/java/org/jboss/as/quickstarts/mail/BasicRuntimeIT.java @@ -15,7 +15,6 @@ */ package org.jboss.as.quickstarts.mail; -import org.apache.hc.client5.http.classic.methods.HttpGet; import org.junit.Test; import java.io.IOException; @@ -36,11 +35,8 @@ */ public class BasicRuntimeIT { - private static final String DEFAULT_SERVER_HOST = "http://localhost:8080/mail"; - @Test public void testHTTPEndpointIsAvailable() throws IOException, InterruptedException, URISyntaxException { - HttpGet httpGet = new HttpGet(getServerHost()); final HttpRequest request = HttpRequest.newBuilder() .uri(new URI(getServerHost())) .GET() diff --git a/mail/src/test/java/org/jboss/as/quickstarts/mail/TestUtils.java b/mail/src/test/java/org/jboss/as/quickstarts/mail/TestUtils.java index 4ce0856035..c1caad6e03 100644 --- a/mail/src/test/java/org/jboss/as/quickstarts/mail/TestUtils.java +++ b/mail/src/test/java/org/jboss/as/quickstarts/mail/TestUtils.java @@ -17,7 +17,7 @@ public class TestUtils { static final String DEFAULT_SERVER_HOST = "http://localhost:8080/mail"; - static final String API_PATH = "/home.jsf"; + static final String MAINPAGE_PATH = "/home.jsf"; static String getServerHost() { String serverHost = System.getenv("SERVER_HOST"); @@ -27,6 +27,6 @@ static String getServerHost() { if (serverHost == null) { serverHost = DEFAULT_SERVER_HOST; } - return serverHost + API_PATH; + return serverHost + MAINPAGE_PATH; } }