You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2008/02/22 16:20:08 UTC

svn commit: r630222 - /incubator/sling/trunk/launchpad/launchpad-webapp/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/HttpPingTest.java

Author: bdelacretaz
Date: Fri Feb 22 07:20:04 2008
New Revision: 630222

URL: http://svn.apache.org/viewvc?rev=630222&view=rev
Log:
SLING-265 - some web containers return the relative path in Location, be more lenient in test

Modified:
    incubator/sling/trunk/launchpad/launchpad-webapp/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/HttpPingTest.java

Modified: incubator/sling/trunk/launchpad/launchpad-webapp/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/HttpPingTest.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/launchpad/launchpad-webapp/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/HttpPingTest.java?rev=630222&r1=630221&r2=630222&view=diff
==============================================================================
--- incubator/sling/trunk/launchpad/launchpad-webapp/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/HttpPingTest.java (original)
+++ incubator/sling/trunk/launchpad/launchpad-webapp/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/HttpPingTest.java Fri Feb 22 07:20:04 2008
@@ -35,7 +35,7 @@
         assertEquals("Status must be 302 for " + url, 302, status);
         final Header h = get.getResponseHeader("Location");
         assertNotNull("Location header must be provided",h);
-        assertEquals(HTTP_BASE_URL + "/index.html", h.getValue());
+        assertTrue("Location header must end with index.html", h.getValue().endsWith("index.html"));
     }
     
     public void test404() throws Exception
@@ -43,4 +43,4 @@
         assertHttpStatus(HTTP_BASE_URL + "/someNonExistentUrl", 404);
     }
     
-}
\ No newline at end of file
+}