Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run classpath test on non-native paths #44915

Merged
merged 1 commit into from
Dec 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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")
Expand All @@ -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()
Expand Down
Loading