sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r640986 - /incubator/sling/trunk/launchpad/webapp/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/CreateNodeTest.java
Date Tue, 25 Mar 2008 21:12:13 GMT
Author: bdelacretaz
Date: Tue Mar 25 14:12:11 2008
New Revision: 640986

URL: http://svn.apache.org/viewvc?rev=640986&view=rev
Log:
SLING-342 - CreateNodeTest adapted, unsupported extensions in GET now return 404 instead of
500

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

Modified: incubator/sling/trunk/launchpad/webapp/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/CreateNodeTest.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/launchpad/webapp/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/CreateNodeTest.java?rev=640986&r1=640985&r2=640986&view=diff
==============================================================================
--- incubator/sling/trunk/launchpad/webapp/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/CreateNodeTest.java
(original)
+++ incubator/sling/trunk/launchpad/webapp/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/CreateNodeTest.java
Tue Mar 25 14:12:11 2008
@@ -56,9 +56,9 @@
         getContent(urlOfNewNode + ".json", CONTENT_TYPE_JSON);
 
         // And extensions for which we have no renderer fail
-        assertHttpStatus(urlOfNewNode + ".xml", 500);
-        assertHttpStatus(urlOfNewNode + ".pdf", 500);
-        assertHttpStatus(urlOfNewNode + ".someWeirdExtension", 500);
+        assertHttpStatus(urlOfNewNode + ".xml", 404);
+        assertHttpStatus(urlOfNewNode + ".pdf", 404);
+        assertHttpStatus(urlOfNewNode + ".someWeirdExtension", 404);
     }
 
     public void testCreateNodeMultipart() throws IOException {



Mime
View raw message