From: markt Date: Sun, 10 Jul 2011 21:59:51 +0000 (+0000) Subject: Make it easier to test that the right response was returned X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=29b77786a7655c7d83271fe3e1cb5467c865c97b;p=tomcat7.0 Make it easier to test that the right response was returned git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1144972 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/test/org/apache/catalina/startup/TomcatBaseTest.java b/test/org/apache/catalina/startup/TomcatBaseTest.java index 517be6ff6..f6c27055e 100644 --- a/test/org/apache/catalina/startup/TomcatBaseTest.java +++ b/test/org/apache/catalina/startup/TomcatBaseTest.java @@ -191,11 +191,14 @@ public abstract class TomcatBaseTest extends TestCase { private static final long serialVersionUID = 1L; + public static final String RESPONSE_TEXT = + "

Hello World

"; + @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { PrintWriter out = resp.getWriter(); - out.print("

Hello World

"); + out.print(RESPONSE_TEXT); } }