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 2019/08/04 07:08:53 UTC

[camel] branch master updated: CAMEL-12003: camel-test getMockEndpoint should lookup mock endpoints and favour the mock queue name as matching.

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 672ccb8  CAMEL-12003: camel-test getMockEndpoint should lookup mock endpoints and favour the mock queue name as matching.
672ccb8 is described below

commit 672ccb8dbdfd168d6119dd213cad03e179a22a4e
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sun Aug 4 09:08:09 2019 +0200

    CAMEL-12003: camel-test getMockEndpoint should lookup mock endpoints and favour the mock queue name as matching.
---
 .../src/main/java/org/apache/camel/test/junit4/CamelTestSupport.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-test/src/main/java/org/apache/camel/test/junit4/CamelTestSupport.java b/components/camel-test/src/main/java/org/apache/camel/test/junit4/CamelTestSupport.java
index 118805e..e77c5fe 100644
--- a/components/camel-test/src/main/java/org/apache/camel/test/junit4/CamelTestSupport.java
+++ b/components/camel-test/src/main/java/org/apache/camel/test/junit4/CamelTestSupport.java
@@ -1007,7 +1007,7 @@ public abstract class CamelTestSupport extends TestSupport {
                     if (idx2 != -1) {
                         t = t.substring(0, idx2);
                     }
-                    return t.startsWith(target);
+                    return t.equals(target);
                 }).findFirst().orElse(null);
 
         if (found != null) {