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

Method testBug45427

test/org/apache/el/TestELInJsp.java:88–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86 }
87
88 @Test
89 public void testBug45427() throws Exception {
90 getTomcatInstanceTestWebapp(false, true);
91
92 ByteChunk res = getUrl("http://localhost:" + getPort() + "/test/bug45nnn/bug45427.jsp");
93
94 String result = res.toString();
95 // Warning: JSP attribute escaping != Java String escaping
96 assertEcho(result, "00-hello world");
97 assertEcho(result, "01-hello 'world");
98 assertEcho(result, "02-hello \"world");
99 assertEcho(result, "03-hello \"world");
100 assertEcho(result, "04-hello world");
101 assertEcho(result, "05-hello 'world");
102 assertEcho(result, "06-hello 'world");
103 assertEcho(result, "07-hello \"world");
104 assertEcho(result, "08-hello world");
105 assertEcho(result, "09-hello 'world");
106 assertEcho(result, "10-hello \"world");
107 assertEcho(result, "11-hello \"world");
108 assertEcho(result, "12-hello world");
109 assertEcho(result, "13-hello 'world");
110 assertEcho(result, "14-hello 'world");
111 assertEcho(result, "15-hello \"world");
112 }
113
114 @Test
115 public void testBug45451() throws Exception {

Callers

nothing calls this directly

Calls 5

toStringMethod · 0.95
assertEchoMethod · 0.95
getUrlMethod · 0.65
getPortMethod · 0.65

Tested by

no test coverage detected