Skip to content

Commit

Permalink
[WFLY-19371] helloworld-singleton Quickstarts should have a root webp…
Browse files Browse the repository at this point in the history
…age similar to helloworld
  • Loading branch information
sudeshnas93 committed Jun 12, 2024
1 parent 01313ed commit 338cafd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
16 changes: 13 additions & 3 deletions helloworld-singleton/src/main/webapp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,20 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE html>
<!-- Plain HTML page that kicks us into the app -->

<html>
<head>
<meta http-equiv="Refresh" content="0; URL=home.jsf">
<meta charset="UTF-8">
<title>helloworld singleton</title>
</head>
</html>
<body>
<div style="text-align:center">

<h1>Hello There! Welcome to WildFly!</h1>
<h2>The helloworld-singleton application has been deployed and running successfully.</h2>
<a href="home.jsf" title="Go to application">Access the helloworld-singleton application here</a>

</div>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ public void testHTTPEndpointIsAvailable() throws IOException, InterruptedExcepti
final HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
Assertions.assertEquals(200, response.statusCode());
final String[] bodyLines = response.body().toString().split(System.lineSeparator());
Assertions.assertEquals("<meta http-equiv=\"Refresh\" content=\"0; URL=home.jsf\">", bodyLines[bodyLines.length-3]);
Assertions.assertEquals(" <title>helloworld singleton</title>", bodyLines[bodyLines.length-12]);
}
}
}

0 comments on commit 338cafd

Please sign in to comment.