From 338cafdd251dc3c97ebd3c0ba79bd329e003850c Mon Sep 17 00:00:00 2001 From: sudeshnas93 Date: Thu, 30 May 2024 13:44:57 +0530 Subject: [PATCH] [WFLY-19371] helloworld-singleton Quickstarts should have a root webpage similar to helloworld --- helloworld-singleton/src/main/webapp/index.html | 16 +++++++++++++--- .../as/quickstarts/singleton/BasicRuntimeIT.java | 4 ++-- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/helloworld-singleton/src/main/webapp/index.html b/helloworld-singleton/src/main/webapp/index.html index 0897d6b00e..616f536dd2 100644 --- a/helloworld-singleton/src/main/webapp/index.html +++ b/helloworld-singleton/src/main/webapp/index.html @@ -14,10 +14,20 @@ See the License for the specific language governing permissions and limitations under the License. --> + - - + + helloworld singleton - + +
+ +

Hello There! Welcome to WildFly!

+

The helloworld-singleton application has been deployed and running successfully.

+ Access the helloworld-singleton application here + +
+ + \ No newline at end of file diff --git a/helloworld-singleton/src/test/java/org/jboss/as/quickstarts/singleton/BasicRuntimeIT.java b/helloworld-singleton/src/test/java/org/jboss/as/quickstarts/singleton/BasicRuntimeIT.java index e62d19a170..01c7714362 100644 --- a/helloworld-singleton/src/test/java/org/jboss/as/quickstarts/singleton/BasicRuntimeIT.java +++ b/helloworld-singleton/src/test/java/org/jboss/as/quickstarts/singleton/BasicRuntimeIT.java @@ -54,6 +54,6 @@ public void testHTTPEndpointIsAvailable() throws IOException, InterruptedExcepti final HttpResponse response = client.send(request, HttpResponse.BodyHandlers.ofString()); Assertions.assertEquals(200, response.statusCode()); final String[] bodyLines = response.body().toString().split(System.lineSeparator()); - Assertions.assertEquals("", bodyLines[bodyLines.length-3]); + Assertions.assertEquals(" helloworld singleton", bodyLines[bodyLines.length-12]); } -} +} \ No newline at end of file