You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2009/06/09 15:17:09 UTC

svn commit: r782993 - /camel/branches/camel-1.x/components/camel-restlet/src/test/java/org/apache/camel/component/restlet/RestletRouteBuilderAuthTest.java

Author: davsclaus
Date: Tue Jun  9 13:17:08 2009
New Revision: 782993

URL: http://svn.apache.org/viewvc?rev=782993&view=rev
Log:
Fixed NPE in unit test reported by TC.

Modified:
    camel/branches/camel-1.x/components/camel-restlet/src/test/java/org/apache/camel/component/restlet/RestletRouteBuilderAuthTest.java

Modified: camel/branches/camel-1.x/components/camel-restlet/src/test/java/org/apache/camel/component/restlet/RestletRouteBuilderAuthTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-1.x/components/camel-restlet/src/test/java/org/apache/camel/component/restlet/RestletRouteBuilderAuthTest.java?rev=782993&r1=782992&r2=782993&view=diff
==============================================================================
--- camel/branches/camel-1.x/components/camel-restlet/src/test/java/org/apache/camel/component/restlet/RestletRouteBuilderAuthTest.java (original)
+++ camel/branches/camel-1.x/components/camel-restlet/src/test/java/org/apache/camel/component/restlet/RestletRouteBuilderAuthTest.java Tue Jun  9 13:17:08 2009
@@ -50,6 +50,7 @@
         headers.put("id", "xyz");
         String response = (String) template.requestBodyAndHeaders("direct:start-auth", 
                 "<order foo='1'/>", headers);
+        assertNotNull("No response", response);
         assertTrue(response.contains("requires user authentication"));
     }