cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gkossakow...@apache.org
Subject svn commit: r637440 - /cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-impl/src/test/java/org/apache/cocoon/servletservice/HttpServlerResponseBufferingWrapperTestCase.java
Date Sat, 15 Mar 2008 17:02:22 GMT
Author: gkossakowski
Date: Sat Mar 15 10:02:12 2008
New Revision: 637440

URL: http://svn.apache.org/viewvc?rev=637440&view=rev
Log:
Forgot that Java 1.4 does not have String.contains() method.
Rethrow exception if we don't know it.

Modified:
    cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-impl/src/test/java/org/apache/cocoon/servletservice/HttpServlerResponseBufferingWrapperTestCase.java

Modified: cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-impl/src/test/java/org/apache/cocoon/servletservice/HttpServlerResponseBufferingWrapperTestCase.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-impl/src/test/java/org/apache/cocoon/servletservice/HttpServlerResponseBufferingWrapperTestCase.java?rev=637440&r1=637439&r2=637440&view=diff
==============================================================================
--- cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-impl/src/test/java/org/apache/cocoon/servletservice/HttpServlerResponseBufferingWrapperTestCase.java
(original)
+++ cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-impl/src/test/java/org/apache/cocoon/servletservice/HttpServlerResponseBufferingWrapperTestCase.java
Sat Mar 15 10:02:12 2008
@@ -97,7 +97,10 @@
                 outputStream.write(b);
             } catch (RuntimeException e) {
                 //here we check whether we caught right exception. Is there any better method?
-                catchedException = e.getMessage().contains("limit");
+                if (e.getMessage().indexOf("limit") != -1)
+                    catchedException = true;
+                else
+                    throw e;
             }
         }
         control.verify();



Mime
View raw message