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 9a6935b  CAMEL-158080: init predicates added to AssertionClause (#4563)
9a6935b is described below

commit 9a6935bfdbe7ad6456c6e211ea7aed39fccc3584
Author: fizzet <jen...@gmx.net>
AuthorDate: Thu Nov 5 06:55:16 2020 +0100

    CAMEL-158080: init predicates added to AssertionClause (#4563)
---
 .../src/main/java/org/apache/camel/component/mock/AssertionClause.java   | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/components/camel-mock/src/main/java/org/apache/camel/component/mock/AssertionClause.java
 
b/components/camel-mock/src/main/java/org/apache/camel/component/mock/AssertionClause.java
index bf6d52f..e4fe4bf 100644
--- 
a/components/camel-mock/src/main/java/org/apache/camel/component/mock/AssertionClause.java
+++ 
b/components/camel-mock/src/main/java/org/apache/camel/component/mock/AssertionClause.java
@@ -118,6 +118,7 @@ public abstract class AssertionClause extends 
MockExpressionClauseSupport<MockVa
     }
 
     protected void addPredicate(Predicate predicate) {
+        predicate.init(mock.getCamelContext());
         predicates.add(predicate);
     }
 

Reply via email to