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 2022/08/04 08:41:23 UTC

[camel] branch main updated: Fixed test on JDK17

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

davsclaus 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 75df3abd867 Fixed test on JDK17
75df3abd867 is described below

commit 75df3abd8670098398ee15e40eeee5383e2acc7e
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu Aug 4 10:41:15 2022 +0200

    Fixed test on JDK17
---
 .../src/test/groovy/org/apache/camel/dsl/yaml/XPathNamespaceTest.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dsl/camel-yaml-dsl/camel-yaml-dsl/src/test/groovy/org/apache/camel/dsl/yaml/XPathNamespaceTest.groovy b/dsl/camel-yaml-dsl/camel-yaml-dsl/src/test/groovy/org/apache/camel/dsl/yaml/XPathNamespaceTest.groovy
index 10847efc282..fdeb3d42120 100644
--- a/dsl/camel-yaml-dsl/camel-yaml-dsl/src/test/groovy/org/apache/camel/dsl/yaml/XPathNamespaceTest.groovy
+++ b/dsl/camel-yaml-dsl/camel-yaml-dsl/src/test/groovy/org/apache/camel/dsl/yaml/XPathNamespaceTest.groovy
@@ -53,7 +53,7 @@ class XPathNamespaceTest extends YamlTestSupport {
                 with(whenClauses[0], WhenDefinition) {
                     var x = expression as XPathExpression
                     x.expression == '/c:number = 55'
-                    x.namespace.size == 2
+                    x.namespace.size() == 2
                     x.namespace[0].key == 'c'
                     x.namespace[0].value == 'http://acme.com/cheese'
                     x.namespace[1].key == 'w'