camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [10/10] camel git commit: CAMEL-7050: DeadLetterChannel should make more clear that it handles any new exception also. Added option to configure this behavior so ppl can turn that off and let new exceptions be unhandled, so transactions can rollback.
Date Mon, 19 Jan 2015 08:53:56 GMT
CAMEL-7050: DeadLetterChannel should make more clear that it handles any new exception also.
Added option to configure this behavior so ppl can turn that off and let new exceptions be
unhandled, so transactions can rollback.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/9461db29
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/9461db29
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/9461db29

Branch: refs/heads/master
Commit: 9461db295dfeb092ef50e193565d676160632e2b
Parents: 1a668e8
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Sun Jan 18 21:22:42 2015 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Sun Jan 18 21:22:42 2015 +0100

----------------------------------------------------------------------
 .../disruptor/DisruptorRemoveRouteThenAddAgainTest.java        | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/9461db29/components/camel-disruptor/src/test/java/org/apache/camel/component/disruptor/DisruptorRemoveRouteThenAddAgainTest.java
----------------------------------------------------------------------
diff --git a/components/camel-disruptor/src/test/java/org/apache/camel/component/disruptor/DisruptorRemoveRouteThenAddAgainTest.java
b/components/camel-disruptor/src/test/java/org/apache/camel/component/disruptor/DisruptorRemoveRouteThenAddAgainTest.java
index fc04262..5ef4181 100644
--- a/components/camel-disruptor/src/test/java/org/apache/camel/component/disruptor/DisruptorRemoveRouteThenAddAgainTest.java
+++ b/components/camel-disruptor/src/test/java/org/apache/camel/component/disruptor/DisruptorRemoveRouteThenAddAgainTest.java
@@ -27,7 +27,7 @@ import org.junit.Test;
 public class DisruptorRemoveRouteThenAddAgainTest extends CamelTestSupport {
     @Test
     public void testRemoveRouteAndThenAddAgain() throws Exception {
-        final MockEndpoint out = getMockEndpoint("mock:out");
+        MockEndpoint out = getMockEndpoint("mock:out");
         out.expectedMessageCount(1);
         out.expectedBodiesReceived("before removing the route");
 
@@ -35,8 +35,6 @@ public class DisruptorRemoveRouteThenAddAgainTest extends CamelTestSupport
{
 
         out.assertIsSatisfied();
 
-        out.reset();
-
         // now stop & remove the route
         context.stopRoute("disruptorToMock");
         context.removeRoute("disruptorToMock");
@@ -44,6 +42,8 @@ public class DisruptorRemoveRouteThenAddAgainTest extends CamelTestSupport
{
         // and then add it back again
         context.addRoutes(createRouteBuilder());
 
+        // get mock endpoint again as we removed the route which removes the endpoint
+        out = getMockEndpoint("mock:out");
         out.expectedMessageCount(1);
         out.expectedBodiesReceived("after removing the route");
 


Mime
View raw message