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

apupier 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 f129c5f7ae16 ci: restore the 4.24.0-SNAPSHOT fixtures of 
VersionHelperTest after the bump to 4.25.0-SNAPSHOT
f129c5f7ae16 is described below

commit f129c5f7ae16eeafbba6eeb6b94200f7cd98907b
Author: AurĂ©lien Pupier <[email protected]>
AuthorDate: Thu Dec 3 16:05:53 2026 +0100

    ci: restore the 4.24.0-SNAPSHOT fixtures of VersionHelperTest after the 
bump to 4.25.0-SNAPSHOT
    
    The second bump replaced again 4.24.0-SNAPSHOT by 4.25.0-SNAPSHOT in the
    'snapshot before its release' cases, which reverted 17758742c57d and made
    VersionHelperTest fail (4.24.0 compared with 4.25.0-SNAPSHOT is -1, not 1).
    
    Co-authored-by: IBM Bob <[email protected]>
    Signed-off-by: AurĂ©lien Pupier <[email protected]>
---
 .../java/org/apache/camel/catalog/cve/AdvisoryVersions.java  |  2 +-
 .../apache/camel/dsl/jbang/run/common/VersionHelperTest.java | 12 ++++++------
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git 
a/catalog/camel-catalog-cve/src/main/java/org/apache/camel/catalog/cve/AdvisoryVersions.java
 
b/catalog/camel-catalog-cve/src/main/java/org/apache/camel/catalog/cve/AdvisoryVersions.java
index c14c5a18f477..9f6f6c303028 100644
--- 
a/catalog/camel-catalog-cve/src/main/java/org/apache/camel/catalog/cve/AdvisoryVersions.java
+++ 
b/catalog/camel-catalog-cve/src/main/java/org/apache/camel/catalog/cve/AdvisoryVersions.java
@@ -23,7 +23,7 @@ import java.util.regex.Matcher;
 import java.util.regex.Pattern;
 
 /**
- * Compares versions as the Apache Camel security advisories write them, such 
as {@code 4.25.0-SNAPSHOT} before
+ * Compares versions as the Apache Camel security advisories write them, such 
as {@code 4.24.0-SNAPSHOT} before
  * {@code 4.24.0}. Also used by {@code VersionHelper} of the Camel CLI.
  */
 public final class AdvisoryVersions {
diff --git 
a/dsl/camel-jbang/camel-jbang-run/src/test/java/org/apache/camel/dsl/jbang/run/common/VersionHelperTest.java
 
b/dsl/camel-jbang/camel-jbang-run/src/test/java/org/apache/camel/dsl/jbang/run/common/VersionHelperTest.java
index 2c8e6bec79de..bf4b7c3699d3 100644
--- 
a/dsl/camel-jbang/camel-jbang-run/src/test/java/org/apache/camel/dsl/jbang/run/common/VersionHelperTest.java
+++ 
b/dsl/camel-jbang/camel-jbang-run/src/test/java/org/apache/camel/dsl/jbang/run/common/VersionHelperTest.java
@@ -38,16 +38,16 @@ class VersionHelperTest {
             "3.33.1.1, 3.33.1, 1",
             "3.31.0.1, 3.31.0, 1",
             "4.99.0, 4.100.0, -1",
-            "4.24.0, 4.25.0-SNAPSHOT, 1",
+            "4.24.0, 4.24.0-SNAPSHOT, 1",
             "4.24.10-SNAPSHOT, 4.24.10, -1",
-            "4.25.0-SNAPSHOT, 4.23.0, 1",
-            "4.25.0-SNAPSHOT, 4.25.0-SNAPSHOT, 0",
+            "4.24.0-SNAPSHOT, 4.23.0, 1",
+            "4.24.0-SNAPSHOT, 4.24.0-SNAPSHOT, 0",
             "4.24.0-RC1, 4.24.0-RC2, -1",
             "4.24.0-RC1, 4.24.0, -1",
             "4.24.0-M2, 4.24.0-RC1, -1",
             // a build of a release comes after it
             "4.24.0.build-2, 4.24.0, 1",
-            "4.24.0.build-2, 4.25.0-SNAPSHOT, 1",
+            "4.24.0.build-2, 4.24.0-SNAPSHOT, 1",
             "4.24.0-beta-1, 4.24.0, -1",
             "'4,10', '4,9', 1" })
     void compare(String source, String target, int expected) {
@@ -88,8 +88,8 @@ class VersionHelperTest {
         assertThat(VersionHelper.isGE("3.31.0.1", "3.31.0")).isTrue();
         assertThat(VersionHelper.isLE("3.27.3.1", "3.27.4")).isTrue();
         // a snapshot comes before its release, as in Maven
-        assertThat(VersionHelper.isGE("4.25.0-SNAPSHOT", "4.24.0")).isFalse();
-        assertThat(VersionHelper.isGE("4.25.0-SNAPSHOT", "4.23.0")).isTrue();
+        assertThat(VersionHelper.isGE("4.24.0-SNAPSHOT", "4.24.0")).isFalse();
+        assertThat(VersionHelper.isGE("4.24.0-SNAPSHOT", "4.23.0")).isTrue();
         assertThat(VersionHelper.isBetween("4.18.2", "4.18.0", 
"4.19.0")).isTrue();
         assertThat(VersionHelper.isBetween("4.19.0", "4.18.0", 
"4.19.0")).isFalse();
     }

Reply via email to