You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2023/08/07 10:05:06 UTC

[camel] branch main updated: CAMEL-19669: reset the mock value after the test execution (#11019)

This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new b9ea4831af6 CAMEL-19669: reset the mock value after the test execution (#11019)
b9ea4831af6 is described below

commit b9ea4831af635cf0678bdad5bc8dd9cfd4285696
Author: Otavio Rodolfo Piske <or...@users.noreply.github.com>
AuthorDate: Mon Aug 7 12:04:59 2023 +0200

    CAMEL-19669: reset the mock value after the test execution (#11019)
---
 .../org/apache/camel/component/jms/TwoConsumerOnSameQueueTest.java  | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/components/camel-jms/src/test/java/org/apache/camel/component/jms/TwoConsumerOnSameQueueTest.java b/components/camel-jms/src/test/java/org/apache/camel/component/jms/TwoConsumerOnSameQueueTest.java
index 390315318cc..39327a67705 100644
--- a/components/camel-jms/src/test/java/org/apache/camel/component/jms/TwoConsumerOnSameQueueTest.java
+++ b/components/camel-jms/src/test/java/org/apache/camel/component/jms/TwoConsumerOnSameQueueTest.java
@@ -18,6 +18,7 @@ package org.apache.camel.component.jms;
 
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.component.mock.MockEndpoint;
+import org.junit.jupiter.api.AfterEach;
 import org.junit.jupiter.api.Tag;
 import org.junit.jupiter.api.Tags;
 import org.junit.jupiter.api.Test;
@@ -95,6 +96,11 @@ public class TwoConsumerOnSameQueueTest extends AbstractPersistentJMSTest {
         MockEndpoint.assertIsSatisfied(context);
     }
 
+    @AfterEach
+    void resetMocks() {
+        MockEndpoint.resetMocks(context);
+    }
+
     @Override
     protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {