@@ -0,0 +1,2663 @@
+package io.quarkus.webjar.locator.test;%0A%0Aimport static org.hamcrest.core.Is.is;%0A%0Aimport java.util.Arrays;%0A%0Aimport org.jboss.shrinkwrap.api.asset.StringAsset;%0Aimport org.junit.jupiter.api.Test;%0Aimport org.junit.jupiter.api.extension.RegisterExtension;%0A%0Aimport io.quarkus.bootstrap.model.AppArtifact;%0Aimport io.quarkus.test.QuarkusUnitTest;%0Aimport io.restassured.RestAssured;%0A%0Apublic class WebJarLocatorRootPathTest extends WebJarLocatorTestSupport %7B%0A    private static final String META_INF_RESOURCES = %22META-INF/resources/%22;%0A%0A    @RegisterExtension%0A    static QuarkusUnitTest runner = new QuarkusUnitTest()%0A            .withApplicationRoot((jar) -%3E jar%0A                    .addAsResource(new StringAsset(%22%3Chtml%3EHello!%3Chtml%3E%22), META_INF_RESOURCES + %22/index.html%22)%0A                    .addAsResource(new StringAsset(%22Test%22), META_INF_RESOURCES + %22/some/path/test.txt%22))%0A            .overrideConfigKey(%22quarkus.http.root-path%22, %22/app%22)%0A            .setForcedDependencies(Arrays.asList(new AppArtifact(%22org.webjars%22, %22jquery-ui%22, JQUERY_UI_VERSION),%0A                    new AppArtifact(%22org.webjars%22, %22momentjs%22, MOMENTJS_VERSION)));%0A%0A    @Test%0A    public void test() %7B%0A        // Test normal files%0A        RestAssured.get(%22/%22).then()%0A                .statusCode(200)%0A                .body(is(%22%3Chtml%3EHello!%3Chtml%3E%22));%0A%0A        RestAssured.get(%22/index.html%22).then()%0A                .statusCode(200)%0A                .body(is(%22%3Chtml%3EHello!%3Chtml%3E%22));%0A%0A        RestAssured.get(%22/some/path/test.txt%22).then()%0A                .statusCode(200)%0A                .body(is(%22Test%22));%0A%0A        // Test Existing Web Jars%0A        RestAssured.get(%22/webjars/jquery-ui/jquery-ui.min.js%22).then()%0A                .statusCode(200);%0A        RestAssured.get(%22/webjars/momentjs/min/moment.min.js%22).then()%0A                .statusCode(200);%0A%0A        // Test using version in url of existing Web Jar%0A        RestAssured.get(%22/webjars/jquery-ui/%22 + JQUERY_UI_VERSION + %22/jquery-ui.min.js%22).then()%0A                .statusCode(200);%0A        RestAssured.get(%22/webjars/momentjs/%22 + MOMENTJS_VERSION + %22/min/moment.min.js%22).then()%0A                .statusCode(200);%0A%0A        // Test non-existing Web Jar%0A        RestAssured.get(%22/webjars/bootstrap/js/bootstrap.min.js%22).then()%0A                .statusCode(404);%0A        RestAssured.get(%22/webjars/bootstrap/4.3.1/js/bootstrap.min.js%22).then()%0A                .statusCode(404);%0A        RestAssured.get(%22/webjars/momentjs/2.25.0/min/moment.min.js%22).then()%0A                .statusCode(404);%0A%0A        // Test webjar that does not have a version in the jar path%0A        RestAssured.get(%22/webjars/dcjs/dc.min.js%22).then()%0A                .statusCode(200);%0A    %7D%0A%7D%0A

add WebJarLocatorRootPathTest