cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From reinh...@apache.org
Subject svn commit: r637894 - /cocoon/trunk/core/cocoon-webapp/src/test/java/org/apache/cocoon/it/servletservice/ServletConnection.java
Date Mon, 17 Mar 2008 14:20:33 GMT
Author: reinhard
Date: Mon Mar 17 07:20:29 2008
New Revision: 637894

URL: http://svn.apache.org/viewvc?rev=637894&view=rev
Log:
add a test that checks if a servlet connection can return an error status code

Modified:
    cocoon/trunk/core/cocoon-webapp/src/test/java/org/apache/cocoon/it/servletservice/ServletConnection.java

Modified: cocoon/trunk/core/cocoon-webapp/src/test/java/org/apache/cocoon/it/servletservice/ServletConnection.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-webapp/src/test/java/org/apache/cocoon/it/servletservice/ServletConnection.java?rev=637894&r1=637893&r2=637894&view=diff
==============================================================================
--- cocoon/trunk/core/cocoon-webapp/src/test/java/org/apache/cocoon/it/servletservice/ServletConnection.java
(original)
+++ cocoon/trunk/core/cocoon-webapp/src/test/java/org/apache/cocoon/it/servletservice/ServletConnection.java
Mon Mar 17 07:20:29 2008
@@ -42,4 +42,10 @@
         Assert.assertTrue(this.response.getStatusCode() == 200);
     }
 
+    public void testRelativeServletConnectionErrorStatusCode() throws Exception {
+        this.loadResponse("test1/test9");
+        assertTrue(this.response.getContentAsString().indexOf("Forbidden") > 0);
+        Assert.assertTrue(this.response.getStatusCode() == 403);
+    }
+
 }



Mime
View raw message