Skip to content

Commit

Permalink
Issue #5941 Change jsp distro test to test jstl
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Bartel <janb@webtide.com>
  • Loading branch information
janbartel committed Feb 10, 2021
1 parent e9f33ad commit 55a0685
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -142,7 +142,7 @@ public void testQuickStartGenerationAndRun() throws Exception
}

@Test
public void testSimpleWebAppWithJSP() throws Exception
public void testSimpleWebAppWithJSPandJSTL() throws Exception
{
Path jettyBase = newTestJettyBaseDirectory();
String jettyVersion = System.getProperty("jettyVersion");
Expand All @@ -155,7 +155,7 @@ public void testSimpleWebAppWithJSP() throws Exception
String[] args1 = {
"--create-start-ini",
"--approve-all-licenses",
"--add-modules=resources,server,http,webapp,deploy,jsp,jmx,servlet,servlets"
"--add-modules=resources,server,http,webapp,deploy,jsp,jstl,jmx,servlet,servlets"
};
try (JettyHomeTester.Run run1 = distribution.start(args1))
{
Expand All @@ -174,9 +174,9 @@ public void testSimpleWebAppWithJSP() throws Exception
assertTrue(run2.awaitConsoleLogsFor("Started Server@", 10, TimeUnit.SECONDS));

startHttpClient();
ContentResponse response = client.GET("http://localhost:" + port + "/test/index.jsp");
ContentResponse response = client.GET("http://localhost:" + port + "/test/jstl.jsp");
assertEquals(HttpStatus.OK_200, response.getStatus());
assertThat(response.getContentAsString(), containsString("JSP Examples"));
assertThat(response.getContentAsString(), containsString("JSTL Example"));
assertThat(response.getContentAsString(), not(containsString("<%")));
}
}
Expand Down

0 comments on commit 55a0685

Please sign in to comment.