From f3de58ee8028a93f76b707ced5d0c4db0856bba7 Mon Sep 17 00:00:00 2001 From: Holly Cummins Date: Wed, 4 Dec 2024 17:34:20 +1100 Subject: [PATCH] Run test on non-native scenarios --- .../java/io/quarkus/it/extension/ClasspathTestCase.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/integration-tests/test-extension/tests/src/test/java/io/quarkus/it/extension/ClasspathTestCase.java b/integration-tests/test-extension/tests/src/test/java/io/quarkus/it/extension/ClasspathTestCase.java index 3a8efbf1b22f1..29fed1e8a63f1 100644 --- a/integration-tests/test-extension/tests/src/test/java/io/quarkus/it/extension/ClasspathTestCase.java +++ b/integration-tests/test-extension/tests/src/test/java/io/quarkus/it/extension/ClasspathTestCase.java @@ -3,7 +3,6 @@ import static io.restassured.RestAssured.given; import static org.hamcrest.Matchers.is; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import io.quarkus.test.junit.DisabledOnIntegrationTest; @@ -53,9 +52,10 @@ public void testStaticInitMainResourceNoDuplicate() { .body(is("OK")); } + // For some reason, class files are not accessible as resources through the runtime init classloader;" + // that's beside the point of this PR though, so we'll ignore that." @Test - @Disabled("For some reason, class files are not accessible as resources through the runtime init classloader;" - + " that's beside the point of this PR though, so we'll ignore that.") + @DisabledOnIntegrationTest() public void testRuntimeInitMainClassNoDuplicate() { given().param("resourceName", CLASS_FILE) .param("phase", "runtime_init") @@ -65,6 +65,8 @@ public void testRuntimeInitMainClassNoDuplicate() { @Test public void testRuntimeInitMainResourceNoDuplicate() { + // Runtime classloader classes are stored in memory, as "quarkus:" resources, and we do not have a quarkus filesystem provider + // at the moment, the path helper works around that by hacking/reverse engineering a file-based location given().param("resourceName", RESOURCE_FILE) .param("phase", "runtime_init") .when().get("/core/classpath").then()