You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bv...@apache.org on 2012/11/05 01:00:08 UTC

svn commit: r1405678 - /camel/trunk/camel-core/src/test/java/org/apache/camel/processor/enricher/EnricherTest.java

Author: bvahdat
Date: Mon Nov  5 00:00:07 2012
New Revision: 1405678

URL: http://svn.apache.org/viewvc?rev=1405678&view=rev
Log:
Fixed the failed test on the CI-Server (Enricher EIP should store TO_ENDPOINT as property like the others do).

Modified:
    camel/trunk/camel-core/src/test/java/org/apache/camel/processor/enricher/EnricherTest.java

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/processor/enricher/EnricherTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/enricher/EnricherTest.java?rev=1405678&r1=1405677&r2=1405678&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/processor/enricher/EnricherTest.java (original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/processor/enricher/EnricherTest.java Mon Nov  5 00:00:07 2012
@@ -35,18 +35,13 @@ public class EnricherTest extends Contex
         mock = getMockEndpoint("mock:mock");
     }
 
-    @Override
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
     // -------------------------------------------------------------
     //  InOnly routes
     // -------------------------------------------------------------
 
     public void testEnrichInOnly() throws InterruptedException {
         mock.expectedBodiesReceived("test:blah");
-        mock.expectedHeaderReceived(Exchange.TO_ENDPOINT, "direct://enricher-constant-resource");
+        mock.message(0).property(Exchange.TO_ENDPOINT).isEqualTo("mock://mock");
         template.sendBody("direct:enricher-test-1", "test");
         mock.assertIsSatisfied();
     }
@@ -62,7 +57,7 @@ public class EnricherTest extends Contex
         assertEquals("test", exchange.getIn().getBody());
         assertTrue(exchange.getOut() != null && exchange.getOut().isFault());
         assertEquals("failed", exchange.getOut().getBody());
-        assertEquals("direct://enricher-fault-resource", exchange.getOut().getHeader(Exchange.TO_ENDPOINT));
+        assertEquals("direct://enricher-fault-resource", exchange.getProperty(Exchange.TO_ENDPOINT));
         assertNull(exchange.getException());
     }