| 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) { |