re-enable DefaultServletTest.testWelcomeServlet
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
83ae7afe2b
commit
69c83c76a6
|
@ -1327,7 +1327,6 @@ public class DefaultServletTest
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Disabled("TODO: sendError not working (yet)")
|
|
||||||
public void testWelcomeServlet() throws Exception
|
public void testWelcomeServlet() throws Exception
|
||||||
{
|
{
|
||||||
Path inde = docRoot.resolve("index.htm");
|
Path inde = docRoot.resolve("index.htm");
|
||||||
|
@ -1353,7 +1352,7 @@ public class DefaultServletTest
|
||||||
""");
|
""");
|
||||||
response = HttpTester.parseResponse(rawResponse);
|
response = HttpTester.parseResponse(rawResponse);
|
||||||
assertThat(response.toString(), response.getStatus(), is(HttpStatus.INTERNAL_SERVER_ERROR_500));
|
assertThat(response.toString(), response.getStatus(), is(HttpStatus.INTERNAL_SERVER_ERROR_500));
|
||||||
// TODO: sendError not working (yet) assertThat(response.getContent(), containsString("JSP support not configured"));
|
assertThat(response.getContent(), containsString("JSP support not configured"));
|
||||||
|
|
||||||
Files.writeString(index, "<h1>Hello Index</h1>", UTF_8);
|
Files.writeString(index, "<h1>Hello Index</h1>", UTF_8);
|
||||||
rawResponse = connector.getResponse("""
|
rawResponse = connector.getResponse("""
|
||||||
|
|
Loading…
Reference in New Issue