MCPcopy Create free account
hub / github.com/apache/tomcat / testBug49726a

Method testBug49726a

test/org/apache/jasper/compiler/TestCompiler.java:35–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33public class TestCompiler extends TomcatBaseTest {
34
35 @Test
36 public void testBug49726a() throws Exception {
37 getTomcatInstanceTestWebapp(false, true);
38
39 ByteChunk res = new ByteChunk();
40 Map<String,List<String>> headers = new HashMap<>();
41
42 getUrl("http://localhost:" + getPort() + "/test/bug49nnn/bug49726a.jsp", res, headers);
43
44 // Check request completed
45 String result = res.toString();
46 assertEcho(result, "OK");
47
48 // Check content type
49 String contentType = getSingleHeader("Content-Type", headers);
50 Assert.assertTrue(contentType.startsWith("text/html"));
51 }
52
53 @Test
54 public void testBug49726b() throws Exception {

Callers

nothing calls this directly

Calls 7

toStringMethod · 0.95
assertEchoMethod · 0.95
getSingleHeaderMethod · 0.80
getUrlMethod · 0.65
getPortMethod · 0.65
startsWithMethod · 0.45

Tested by

no test coverage detected