This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new 63d5e82 Fixed test
63d5e82 is described below
commit 63d5e8254da2ab456e2c68fc264eb27ba16c0a32
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Feb 26 15:47:11 2021 +0100
Fixed test
---
.../org/apache/camel/component/sjms2/Sjms2ComponentRestartTest.java | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/components/camel-sjms2/src/test/java/org/apache/camel/component/sjms2/Sjms2ComponentRestartTest.java
b/components/camel-sjms2/src/test/java/org/apache/camel/component/sjms2/Sjms2ComponentRestartTest.java
index a0cdef64..fb943f6 100644
---
a/components/camel-sjms2/src/test/java/org/apache/camel/component/sjms2/Sjms2ComponentRestartTest.java
+++
b/components/camel-sjms2/src/test/java/org/apache/camel/component/sjms2/Sjms2ComponentRestartTest.java
@@ -54,6 +54,9 @@ public class Sjms2ComponentRestartTest extends
CamelTestSupport {
resetMocks();
+ // rebind as the registry is cleared on stop
+ context.getRegistry().bind("activemqCF", connectionFactory);
+
context.start();
getMockEndpoint("mock:test").expectedMessageCount(1);