You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2025/07/14 06:09:55 UTC

(camel-quarkus) branch main updated: Move all classpath resource glob tests to a dedicated test method

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

jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git


The following commit(s) were added to refs/heads/main by this push:
     new a5c51f341f Move all classpath resource glob tests to a dedicated test method
a5c51f341f is described below

commit a5c51f341fac50f0be423f8556809229b18fc9ad
Author: James Netherton <ja...@users.noreply.github.com>
AuthorDate: Mon Jul 14 07:09:50 2025 +0100

    Move all classpath resource glob tests to a dedicated test method
---
 .../org/apache/camel/quarkus/core/CoreTest.java    | 32 +++++++++++-----------
 1 file changed, 16 insertions(+), 16 deletions(-)

diff --git a/integration-test-groups/foundation/core/src/test/java/org/apache/camel/quarkus/core/CoreTest.java b/integration-test-groups/foundation/core/src/test/java/org/apache/camel/quarkus/core/CoreTest.java
index c12cdc2611..dc6c075479 100644
--- a/integration-test-groups/foundation/core/src/test/java/org/apache/camel/quarkus/core/CoreTest.java
+++ b/integration-test-groups/foundation/core/src/test/java/org/apache/camel/quarkus/core/CoreTest.java
@@ -157,7 +157,22 @@ public class CoreTest {
                 .then()
                 .body(endsWith("include-pattern-folder/included.txt"));
 
-        // Classpath globbing
+        // Resource that does not exist
+        RestAssured.given()
+                .queryParam("path", "sub-resources-folder/invalid")
+                .get("/core/resource/resolve")
+                .then()
+                .body(emptyOrNullString());
+    }
+
+    @Test
+    void classpathPackageScanDirectoryGlob() {
+        // TODO: Remove this suppression of test execution in the Quarkus Platform
+        // https://github.com/apache/camel-quarkus/issues/7312
+        Path moduleDir = Paths.get("").toAbsolutePath().getFileName();
+
+        Assumptions.assumeFalse(moduleDir.toString().equals("camel-quarkus-integration-test-foundation-grouped"));
+
         RestAssured.given()
                 .queryParam("path", "sub-resources-folder/**")
                 .get("/core/resource/resolve")
@@ -182,21 +197,6 @@ public class CoreTest {
                         containsString("sub-resources-folder/foo/bar/test-1.txt"),
                         containsString("sub-resources-folder/foo/bar/test-2.txt"));
 
-        // Resource that does not exist
-        RestAssured.given()
-                .queryParam("path", "sub-resources-folder/invalid")
-                .get("/core/resource/resolve")
-                .then()
-                .body(emptyOrNullString());
-    }
-
-    @Test
-    void classpathPackageScanDirectoryStartGlob() {
-        // TODO: Remove this suppression of test execution in the Quarkus Platform
-        // https://github.com/apache/camel-quarkus/issues/7312
-        Path moduleDir = Paths.get("").toAbsolutePath().getFileName();
-        Assumptions.assumeFalse(moduleDir.toString().equals("camel-quarkus-integration-test-foundation-grouped"));
-
         RestAssured.given()
                 .queryParam("path", "**/*.txt")
                 .get("/core/resource/resolve")