camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From astefanu...@apache.org
Subject camel git commit: CAMEL-9904: add missing @Mock qualifier for default Camel context bean deployment
Date Mon, 25 Apr 2016 08:37:26 GMT
Repository: camel
Updated Branches:
  refs/heads/master 6839c9fcd -> 99bb63da0


CAMEL-9904: add missing @Mock qualifier for default Camel context bean deployment


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

Branch: refs/heads/master
Commit: 99bb63da0768756560de5748269929ee3b769544
Parents: 6839c9f
Author: Antonin Stefanutti <antonin@stefanutti.fr>
Authored: Mon Apr 25 10:37:17 2016 +0200
Committer: Antonin Stefanutti <antonin@stefanutti.fr>
Committed: Mon Apr 25 10:37:17 2016 +0200

----------------------------------------------------------------------
 .../src/main/java/org/apache/camel/cdi/CdiCamelExtension.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/99bb63da/components/camel-cdi/src/main/java/org/apache/camel/cdi/CdiCamelExtension.java
----------------------------------------------------------------------
diff --git a/components/camel-cdi/src/main/java/org/apache/camel/cdi/CdiCamelExtension.java
b/components/camel-cdi/src/main/java/org/apache/camel/cdi/CdiCamelExtension.java
index ae6f682..5b3affb 100755
--- a/components/camel-cdi/src/main/java/org/apache/camel/cdi/CdiCamelExtension.java
+++ b/components/camel-cdi/src/main/java/org/apache/camel/cdi/CdiCamelExtension.java
@@ -346,7 +346,7 @@ public class CdiCamelExtension implements Extension {
             .filter(ip -> getRawType(ip.getType()).getPackage().getName().startsWith("org.apache.camel"))
             .map(InjectionPoint::getQualifiers)
             .flatMap(Set::stream)
-            .filter(isAnnotationType(Uri.class).or(isEqual(DEFAULT)))
+            .filter(isAnnotationType(Uri.class).or(isAnnotationType(Mock.class)).or(isEqual(DEFAULT)))
             .findAny()
             .isPresent();
     }


Mime
View raw message