Author: remm
Date: Thu Apr 21 14:16:24 2016
New Revision: 1740324

URL: http://svn.apache.org/viewvc?rev=1740324&view=rev
Log:
59365: Avoid basing the test on the only portion of the output that is 
internationalized.

Modified:
    tomcat/trunk/test/org/apache/tomcat/util/net/TestCustomSsl.java
    tomcat/trunk/test/org/apache/tomcat/util/net/TestSsl.java

Modified: tomcat/trunk/test/org/apache/tomcat/util/net/TestCustomSsl.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/tomcat/util/net/TestCustomSsl.java?rev=1740324&r1=1740323&r2=1740324&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/tomcat/util/net/TestCustomSsl.java (original)
+++ tomcat/trunk/test/org/apache/tomcat/util/net/TestCustomSsl.java Thu Apr 21 
14:16:24 2016
@@ -82,7 +82,7 @@ public class TestCustomSsl extends Tomca
         tomcat.start();
         ByteChunk res = getUrl("https://localhost:"; + getPort() +
             "/examples/servlets/servlet/HelloWorldExample");
-        assertTrue(res.toString().indexOf("<h1>Hello World!</h1>") > 0);
+        assertTrue(res.toString().indexOf("<a href=\"../helloworld.html\">") > 
0);
     }
 
     @Test

Modified: tomcat/trunk/test/org/apache/tomcat/util/net/TestSsl.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/tomcat/util/net/TestSsl.java?rev=1740324&r1=1740323&r2=1740324&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/tomcat/util/net/TestSsl.java (original)
+++ tomcat/trunk/test/org/apache/tomcat/util/net/TestSsl.java Thu Apr 21 
14:16:24 2016
@@ -66,7 +66,7 @@ public class TestSsl extends TomcatBaseT
         tomcat.start();
         ByteChunk res = getUrl("https://localhost:"; + getPort() +
             "/examples/servlets/servlet/HelloWorldExample");
-        assertTrue(res.toString().indexOf("<h1>Hello World!</h1>") > 0);
+        assertTrue(res.toString().indexOf("<a href=\"../helloworld.html\">") > 
0);
     }
 
     @Test
@@ -86,7 +86,7 @@ public class TestSsl extends TomcatBaseT
         tomcat.start();
         ByteChunk res = getUrl("https://localhost:"; + getPort() +
             "/examples/servlets/servlet/HelloWorldExample");
-        assertTrue(res.toString().indexOf("<h1>Hello World!</h1>") > 0);
+        assertTrue(res.toString().indexOf("<a href=\"../helloworld.html\">") > 
0);
     }
 
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to