diff --git a/qute/multimodule/qute-api/pom.xml b/qute/multimodule/qute-api/pom.xml index 3d8cb3b50..d228cef2c 100644 --- a/qute/multimodule/qute-api/pom.xml +++ b/qute/multimodule/qute-api/pom.xml @@ -10,4 +10,19 @@ qute-api jar Quarkus QE TS: Qute-api + + + + native + + + native + + + + + fast-jar + + + diff --git a/qute/multimodule/qute-test/pom.xml b/qute/multimodule/qute-test/pom.xml index 0c35d4fca..9aa8ad97a 100644 --- a/qute/multimodule/qute-test/pom.xml +++ b/qute/multimodule/qute-test/pom.xml @@ -14,7 +14,6 @@ io.quarkus.ts.qe qute-api 1.0.0-SNAPSHOT - test diff --git a/qute/multimodule/qute-test/src/test/resources/messages/alert_el.properties b/qute/multimodule/qute-test/src/main/resources/messages/alert_el.properties similarity index 100% rename from qute/multimodule/qute-test/src/test/resources/messages/alert_el.properties rename to qute/multimodule/qute-test/src/main/resources/messages/alert_el.properties diff --git a/qute/multimodule/qute-test/src/test/resources/messages/msg_cs.properties b/qute/multimodule/qute-test/src/main/resources/messages/msg_cs.properties similarity index 100% rename from qute/multimodule/qute-test/src/test/resources/messages/msg_cs.properties rename to qute/multimodule/qute-test/src/main/resources/messages/msg_cs.properties diff --git a/qute/multimodule/qute-api/src/test/java/io/quarkus/qe/qute/LocalizedMessagesTest.java b/qute/multimodule/qute-test/src/test/java/io/quarkus/qe/qute/LocalizedMessagesIT.java similarity index 92% rename from qute/multimodule/qute-api/src/test/java/io/quarkus/qe/qute/LocalizedMessagesTest.java rename to qute/multimodule/qute-test/src/test/java/io/quarkus/qe/qute/LocalizedMessagesIT.java index 66a52f434..1194aca31 100644 --- a/qute/multimodule/qute-api/src/test/java/io/quarkus/qe/qute/LocalizedMessagesTest.java +++ b/qute/multimodule/qute-test/src/test/java/io/quarkus/qe/qute/LocalizedMessagesIT.java @@ -9,10 +9,10 @@ import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.CsvSource; -import io.quarkus.test.junit.QuarkusTest; +import io.quarkus.test.scenarios.QuarkusScenario; -@QuarkusTest -class LocalizedMessagesTest { +@QuarkusScenario +class LocalizedMessagesIT { @Tag("QUARKUS-1547") @ParameterizedTest diff --git a/qute/multimodule/qute-test/src/test/java/io/quarkus/qe/qute/LocalizedMessagesTest.java b/qute/multimodule/qute-test/src/test/java/io/quarkus/qe/qute/LocalizedMessagesTest.java deleted file mode 100644 index 66a52f434..000000000 --- a/qute/multimodule/qute-test/src/test/java/io/quarkus/qe/qute/LocalizedMessagesTest.java +++ /dev/null @@ -1,45 +0,0 @@ -package io.quarkus.qe.qute; - -import static io.restassured.RestAssured.given; -import static org.hamcrest.CoreMatchers.containsString; -import static org.hamcrest.CoreMatchers.is; - -import org.junit.jupiter.api.Tag; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.params.ParameterizedTest; -import org.junit.jupiter.params.provider.CsvSource; - -import io.quarkus.test.junit.QuarkusTest; - -@QuarkusTest -class LocalizedMessagesTest { - - @Tag("QUARKUS-1547") - @ParameterizedTest - @CsvSource({ "en, Hello. Hello Nikos", "el, Γειά. Γειά σου Nikos" }) - void useLocalizedMessageInstance(String lang, String output) { - given() - .when().get("/hello/" + lang) - .then() - .statusCode(200) - .body(is(output)); - } - - @Test - void useMessageBundlesAndLocalizedAnnotation() { - given() - .when().get("/hello/names") - .then() - .statusCode(200) - .body(is("Hello Rostislav! == Hello Rostislav! | Ahoj Rostislav! == Ahoj Rostislav!")); - } - - @Test - void useLocalizedTemplate() { - given() - .when().get("/hello/page") - .then() - .statusCode(200) - .body(containsString("Ahoj Rostislav!")); - } -}