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 2023/04/26 11:53:59 UTC

[camel] branch camel-3.18.x updated: Fixed test on JDK17 (#9938)

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

davsclaus pushed a commit to branch camel-3.18.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-3.18.x by this push:
     new b74489a0c81 Fixed test on JDK17 (#9938)
b74489a0c81 is described below

commit b74489a0c813bcb68c1dcad2ec7647f40b11ec30
Author: James Netherton <ja...@users.noreply.github.com>
AuthorDate: Wed Apr 26 12:53:51 2023 +0100

    Fixed test on JDK17 (#9938)
    
    Co-authored-by: Claus Ibsen <cl...@gmail.com>
---
 .../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'