svn commit: r701589 - /activemq/camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpPostWithBodyTest.java

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r701589 - /activemq/camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpPostWithBodyTest.java

ningjiang
Author: ningjiang
Date: Fri Oct  3 20:38:57 2008
New Revision: 701589

URL: http://svn.apache.org/viewvc?rev=701589&view=rev
Log:
Fixed the build of camel-http

Modified:
    activemq/camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpPostWithBodyTest.java

Modified: activemq/camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpPostWithBodyTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpPostWithBodyTest.java?rev=701589&r1=701588&r2=701589&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpPostWithBodyTest.java (original)
+++ activemq/camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpPostWithBodyTest.java Fri Oct  3 20:38:57 2008
@@ -33,7 +33,7 @@
 
 
 public class HttpPostWithBodyTest extends ContextTestSupport {
-    protected String expectedText = "Not Implemented";
+    protected String expectedText = "Method Not Allowed";
 
     public void testHttpPostWithError() throws Exception {
 
@@ -58,6 +58,7 @@
         String reason = exception.getStatusLine().getReasonPhrase();
 
         assertNotNull("Should have a body!", reason);
+
         assertTrue("body should contain: " + expectedText, reason.contains(expectedText));
 
     }
@@ -95,7 +96,6 @@
 
         log.debug("Body: " + body);
         assertNotNull("Should have a body!", body);
-        System.out.println("The body is " + body);
         assertTrue("body should contain: <html>", body.contains("<html>"));
 
     }