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

Method testBug49726b

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

Source from the content-addressed store, hash-verified

51 }
52
53 @Test
54 public void testBug49726b() throws Exception {
55 getTomcatInstanceTestWebapp(false, true);
56
57 ByteChunk res = new ByteChunk();
58 Map<String,List<String>> headers = new HashMap<>();
59
60 getUrl("http://localhost:" + getPort() + "/test/bug49nnn/bug49726b.jsp", res, headers);
61
62 // Check request completed
63 String result = res.toString();
64 assertEcho(result, "OK");
65
66 // Check content type
67 String contentType = getSingleHeader("Content-Type", headers);
68 Assert.assertTrue(contentType.startsWith("text/plain"));
69 }
70
71 @Test
72 public void testBug53257a() 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