You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2020/12/21 07:33:13 UTC

[camel] branch master updated: Camel-Milo: Make tests works with JDK 16-ea

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

acosentino 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 e726e3a  Camel-Milo: Make tests works with JDK 16-ea
e726e3a is described below

commit e726e3ae174d8ea3e2d55835b444538f8aa3cbcc
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Dec 21 08:31:16 2020 +0100

    Camel-Milo: Make tests works with JDK 16-ea
---
 .../java/org/apache/camel/component/milo/AbstractMiloServerTest.java  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/components/camel-milo/src/test/java/org/apache/camel/component/milo/AbstractMiloServerTest.java b/components/camel-milo/src/test/java/org/apache/camel/component/milo/AbstractMiloServerTest.java
index d28914f..1d2fc63 100644
--- a/components/camel-milo/src/test/java/org/apache/camel/component/milo/AbstractMiloServerTest.java
+++ b/components/camel-milo/src/test/java/org/apache/camel/component/milo/AbstractMiloServerTest.java
@@ -141,7 +141,9 @@ public abstract class AbstractMiloServerTest extends CamelTestSupport {
             if (dot != -1) {
                 version = version.substring(0, dot);
             }
-            if (Integer.parseInt(version) >= requiredVersion) {
+            if (version.equalsIgnoreCase("16-ea")) {
+                return true;
+            } else if (Integer.parseInt(version) >= requiredVersion) {
                 return true;
             }
         }