camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r552464 - /activemq/camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpRouteTest.java
Date Mon, 02 Jul 2007 11:05:10 GMT
Author: jstrachan
Date: Mon Jul  2 04:05:09 2007
New Revision: 552464

URL: http://svn.apache.org/viewvc?view=rev&rev=552464
Log:
tidied up the test case to avoid threading issues

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

Modified: activemq/camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpRouteTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpRouteTest.java?view=diff&rev=552464&r1=552463&r2=552464
==============================================================================
--- activemq/camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpRouteTest.java
(original)
+++ activemq/camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpRouteTest.java
Mon Jul  2 04:05:09 2007
@@ -42,7 +42,7 @@
 
     public void testPojoRoutes() throws Exception {
         MockEndpoint mockEndpoint = resolveMandatoryEndpoint("mock:a", MockEndpoint.class);
-        mockEndpoint.expectedMessageCount(1);
+        mockEndpoint.expectedBodiesReceived(expectedBody);
 
         invokeHttpEndpoint();
 
@@ -55,12 +55,9 @@
         assertNotNull("in", in);
 
         Map<String,Object> headers = in.getHeaders();
-        String actualBody = in.getBody(String.class);
 
         log.info("Headers: " + headers);
-        log.info("Received body: " + actualBody);
 
-        assertEquals("Body", expectedBody, actualBody);
         assertTrue("Should be more than one header but was: " + headers, headers.size() >
0);
     }
 



Mime
View raw message