You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by js...@apache.org on 2008/08/11 21:42:24 UTC
svn commit: r684891 -
/activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/remoting/SpringRemotingWithOneWayTest.java
Author: jstrachan
Date: Mon Aug 11 12:42:24 2008
New Revision: 684891
URL: http://svn.apache.org/viewvc?rev=684891&view=rev
Log:
added a test to assert the Pattern is correct for CAMEL-810
Modified:
activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/remoting/SpringRemotingWithOneWayTest.java
Modified: activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/remoting/SpringRemotingWithOneWayTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/remoting/SpringRemotingWithOneWayTest.java?rev=684891&r1=684890&r2=684891&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/remoting/SpringRemotingWithOneWayTest.java (original)
+++ activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/remoting/SpringRemotingWithOneWayTest.java Mon Aug 11 12:42:24 2008
@@ -21,6 +21,7 @@
import org.apache.camel.CamelContext;
import org.apache.camel.EndpointInject;
import org.apache.camel.Exchange;
+import org.apache.camel.ExchangePattern;
import org.apache.camel.component.mock.MockEndpoint;
import org.apache.camel.spring.SpringCamelContext;
import org.apache.commons.logging.Log;
@@ -58,6 +59,8 @@
List<Exchange> list = endpoint.getReceivedExchanges();
for (Exchange exchange : list) {
LOG.info("Received: " + exchange.getIn().getBody());
+ ExchangePattern pattern = exchange.getPattern();
+ assertEquals("Expected pattern on exchange: " + exchange, ExchangePattern.InOnly, pattern);
}
}