From 4471a13e78f2ace96cc9e48550dba57ad4e1dcfe Mon Sep 17 00:00:00 2001 From: James Maes Date: Wed, 14 Oct 2026 23:07:33 -0500 Subject: [PATCH] test(help): compare the help bundle version with the artifact version, not a hardcoded SNAPSHOT The bundle version is now Maven-filtered, so a literal SNAPSHOT in the test fails every release build. Surefire passes the artifact version in qbit.artifactVersion. Co-Authored-By: Claude Opus 5.5 --- pom.xml | 10 ++++++++++ .../com/kingsrook/qbits/edi/EdiHelpBundleTest.java | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index a673f38..1ba5774 100644 --- a/pom.xml +++ b/pom.xml @@ -144,6 +144,16 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + + + ${project.version} + + + org.apache.maven.plugins maven-checkstyle-plugin diff --git a/src/test/java/com/kingsrook/qbits/edi/EdiHelpBundleTest.java b/src/test/java/com/kingsrook/qbits/edi/EdiHelpBundleTest.java index 9ae02c2..540e1d3 100644 --- a/src/test/java/com/kingsrook/qbits/edi/EdiHelpBundleTest.java +++ b/src/test/java/com/kingsrook/qbits/edi/EdiHelpBundleTest.java @@ -49,7 +49,7 @@ class EdiHelpBundleTest assertThat(HelpBundles.of(instance).getBundles()).singleElement().satisfies(bundle -> { assertThat(bundle.getId()).isEqualTo("qbit-edi"); - assertThat(bundle.getVersion()).isEqualTo("0.1.0-SNAPSHOT"); + assertThat(bundle.getVersion()).as("the help bundle carries the artifact version").isEqualTo(System.getProperty("qbit.artifactVersion")); }); HelpBundles.syncOnStartup(instance); HelpBundleAssertions.forInstance(instance) -- 2.54.0