incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r630222 - /incubator/sling/trunk/launchpad/launchpad-webapp/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/HttpPingTest.java
Date Fri, 22 Feb 2008 15:20:08 GMT
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
+}



Mime
View raw message