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 2012/11/12 18:34:57 UTC
svn commit: r1408365 -
/camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/SpringJettyNoConnectionRedeliveryTest.java
Author: davsclaus
Date: Mon Nov 12 17:34:57 2012
New Revision: 1408365
URL: http://svn.apache.org/viewvc?rev=1408365&view=rev
Log:
Fixed test
Modified:
camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/SpringJettyNoConnectionRedeliveryTest.java
Modified: camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/SpringJettyNoConnectionRedeliveryTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/SpringJettyNoConnectionRedeliveryTest.java?rev=1408365&r1=1408364&r2=1408365&view=diff
==============================================================================
--- camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/SpringJettyNoConnectionRedeliveryTest.java (original)
+++ camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/SpringJettyNoConnectionRedeliveryTest.java Mon Nov 12 17:34:57 2012
@@ -54,7 +54,9 @@ public class SpringJettyNoConnectionRede
assertTrue(exchange.isFailed());
- assertIsInstanceOf(ConnectException.class, exchange.getException());
+ // there should be a connect exception as cause
+ ConnectException ce = exchange.getException(ConnectException.class);
+ assertNotNull(ce);
assertEquals(true, exchange.getIn().getHeader(Exchange.REDELIVERED));
assertEquals(4, exchange.getIn().getHeader(Exchange.REDELIVERY_COUNTER));