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

Method testBug55262

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

Source from the content-addressed store, hash-verified

174 }
175
176 @Test
177 public void testBug55262() throws Exception {
178 getTomcatInstanceTestWebapp(false, true);
179
180 ByteChunk res = getUrl("http://localhost:" + getPort() + "/test/bug5nnnn/bug55262.jsp");
181 String result = res.toString();
182 Pattern prelude = Pattern.compile("(.*This is a prelude\\.){2}.*", Pattern.MULTILINE | Pattern.DOTALL);
183 Pattern coda = Pattern.compile("(.*This is a coda\\.){2}.*", Pattern.MULTILINE | Pattern.DOTALL);
184 Assert.assertTrue(prelude.matcher(result).matches());
185 Assert.assertTrue(coda.matcher(result).matches());
186 }
187
188 /** Assertion for text printed by tags:echo */
189 private static void assertEcho(String result, String expected) {

Callers

nothing calls this directly

Calls 6

toStringMethod · 0.95
getUrlMethod · 0.65
getPortMethod · 0.65
matchesMethod · 0.65
compileMethod · 0.45

Tested by

no test coverage detected