target = NestedMaps.unflatten(data);
diff --git a/independent-projects/tools/codestarts/src/test/resources/nested-map-2.yml b/independent-projects/tools/codestarts/src/test/resources/nested-map-2.yml
index 5e00644f49c21..77ba8a322ff92 100644
--- a/independent-projects/tools/codestarts/src/test/resources/nested-map-2.yml
+++ b/independent-projects/tools/codestarts/src/test/resources/nested-map-2.yml
@@ -8,6 +8,6 @@ bar:
foo: bar
baz: foo
hello:
- world
+ world: helloworld
list:
- baz
diff --git a/independent-projects/tools/devtools-testing/src/test/resources/fake-catalog.json b/independent-projects/tools/devtools-testing/src/test/resources/fake-catalog.json
index 801fd9dea3fae..46076e7052458 100644
--- a/independent-projects/tools/devtools-testing/src/test/resources/fake-catalog.json
+++ b/independent-projects/tools/devtools-testing/src/test/resources/fake-catalog.json
@@ -1,7 +1,7 @@
{
- "id": "io.quarkus:quarkus-bom-quarkus-platform-descriptor:999-SNAPSHOT:json:999-SNAPSHOT",
+ "id": "io.quarkus:quarkus-fake-bom:999-FAKE:json:999-FAKE",
"platform": true,
- "bom": "io.quarkus:quarkus-bom::pom:999-SNAPSHOT",
+ "bom": "io.quarkus:quarkus-bom::pom:999-FAKE",
"derived-from": [],
"extensions": [
{
@@ -26,13 +26,13 @@
"kotlin",
"scala"
],
- "artifact": "io.quarkus:quarkus-descriptor-json"
+ "artifact": "io.quarkus:fake-artifact"
},
- "built-with-quarkus-core": "999-SNAPSHOT"
+ "built-with-quarkus-core": "999-FAKE"
},
- "artifact": "io.quarkus:quarkus-resteasy-reactive::jar:999-SNAPSHOT",
+ "artifact": "io.quarkus:quarkus-resteasy-reactive::jar:999-FAKE",
"origins": [
- "io.quarkus:quarkus-bom-quarkus-platform-descriptor:999-SNAPSHOT:json:999-SNAPSHOT"
+ "io.quarkus:quarkus-fake-bom:999-FAKE:json:999-FAKE"
]
},
{
@@ -56,13 +56,13 @@
"java",
"kotlin"
],
- "artifact": "io.quarkus:quarkus-descriptor-json"
+ "artifact": "io.quarkus:fake-artifact"
},
- "built-with-quarkus-core": "999-SNAPSHOT"
+ "built-with-quarkus-core": "999-FAKE"
},
- "artifact": "io.quarkus:quarkus-config-yaml::jar:999-SNAPSHOT",
+ "artifact": "io.quarkus:quarkus-config-yaml::jar:999-FAKE",
"origins": [
- "io.quarkus:quarkus-bom-quarkus-platform-descriptor:999-SNAPSHOT:json:999-SNAPSHOT"
+ "io.quarkus:quarkus-fake-bom:999-FAKE:json:999-FAKE"
]
},
{
@@ -88,13 +88,13 @@
"kotlin",
"scala"
],
- "artifact": "io.quarkus:quarkus-descriptor-json"
+ "artifact": "io.quarkus:fake-artifact"
},
- "built-with-quarkus-core": "999-SNAPSHOT"
+ "built-with-quarkus-core": "999-FAKE"
},
- "artifact": "io.quarkus:quarkus-resteasy::jar:999-SNAPSHOT",
+ "artifact": "io.quarkus:quarkus-resteasy::jar:999-FAKE",
"origins": [
- "io.quarkus:quarkus-bom-quarkus-platform-descriptor:999-SNAPSHOT:json:999-SNAPSHOT"
+ "io.quarkus:quarkus-fake-bom:999-FAKE:json:999-FAKE"
]
},
{
@@ -117,13 +117,13 @@
"kotlin",
"scala"
],
- "artifact": "io.quarkus:quarkus-descriptor-json"
+ "artifact": "io.quarkus:fake-artifact"
},
- "built-with-quarkus-core": "999-SNAPSHOT"
+ "built-with-quarkus-core": "999-FAKE"
},
- "artifact": "io.quarkus:quarkus-spring-web::jar:999-SNAPSHOT",
+ "artifact": "io.quarkus:quarkus-spring-web::jar:999-FAKE",
"origins": [
- "io.quarkus:quarkus-bom-quarkus-platform-descriptor:999-SNAPSHOT:json:999-SNAPSHOT"
+ "io.quarkus:quarkus-fake-bom:999-FAKE:json:999-FAKE"
]
},
{
@@ -141,13 +141,13 @@
"codestart": {
"name": "kotlin",
"kind": "core",
- "artifact": "io.quarkus:quarkus-descriptor-json"
+ "artifact": "io.quarkus:fake-artifact"
},
- "built-with-quarkus-core": "999-SNAPSHOT"
+ "built-with-quarkus-core": "999-FAKE"
},
- "artifact": "io.quarkus:quarkus-kotlin::jar:999-SNAPSHOT",
+ "artifact": "io.quarkus:quarkus-kotlin::jar:999-FAKE",
"origins": [
- "io.quarkus:quarkus-bom-quarkus-platform-descriptor:999-SNAPSHOT:json:999-SNAPSHOT"
+ "io.quarkus:quarkus-fake-bom:999-FAKE:json:999-FAKE"
]
},
{
@@ -164,13 +164,13 @@
"codestart": {
"name": "scala",
"kind": "core",
- "artifact": "io.quarkus:quarkus-descriptor-json"
+ "artifact": "io.quarkus:fake-artifact"
},
- "built-with-quarkus-core": "999-SNAPSHOT"
+ "built-with-quarkus-core": "999-FAKE"
},
- "artifact": "io.quarkus:quarkus-scala::jar:999-SNAPSHOT",
+ "artifact": "io.quarkus:quarkus-scala::jar:999-FAKE",
"origins": [
- "io.quarkus:quarkus-bom-quarkus-platform-descriptor:999-SNAPSHOT:json:999-SNAPSHOT"
+ "io.quarkus:quarkus-fake-bom:999-FAKE:json:999-FAKE"
]
}
],
@@ -305,12 +305,12 @@
"kotlin-version": "1.4.31",
"scala-version": "2.12.13",
"scala-plugin-version": "4.4.0",
- "quarkus-core-version": "999-SNAPSHOT",
+ "quarkus-core-version": "999-FAKE",
"maven-plugin-groupId": "io.quarkus",
"maven-plugin-artifactId": "quarkus-maven-plugin",
- "maven-plugin-version": "999-SNAPSHOT",
+ "maven-plugin-version": "999-FAKE",
"gradle-plugin-id": "io.quarkus",
- "gradle-plugin-version": "999-SNAPSHOT",
+ "gradle-plugin-version": "999-FAKE",
"supported-maven-versions": "[3.6.2,)",
"proposed-maven-version": "3.6.3",
"maven-wrapper-version": "0.7.7",
@@ -318,8 +318,8 @@
}
},
"codestarts-artifacts": [
- "io.quarkus:quarkus-platform-descriptor-json::jar:999-SNAPSHOT"
+ "io.quarkus:fake-artifact::jar:999-FAKE"
]
},
- "quarkus-core-version": "999-SNAPSHOT"
+ "quarkus-core-version": "999-FAKE"
}
\ No newline at end of file
diff --git a/devtools/project-core-extension-codestarts/src/test/java/io/quarkus/devtools/codestarts/quarkus/ConfigYamlCodestartTest.java b/integration-tests/devtools/src/test/java/io/quarkus/devtools/codestarts/quarkus/ConfigYamlCodestartTest.java
similarity index 77%
rename from devtools/project-core-extension-codestarts/src/test/java/io/quarkus/devtools/codestarts/quarkus/ConfigYamlCodestartTest.java
rename to integration-tests/devtools/src/test/java/io/quarkus/devtools/codestarts/quarkus/ConfigYamlCodestartTest.java
index d6952d49e6aca..1551f86c9dc55 100644
--- a/devtools/project-core-extension-codestarts/src/test/java/io/quarkus/devtools/codestarts/quarkus/ConfigYamlCodestartTest.java
+++ b/integration-tests/devtools/src/test/java/io/quarkus/devtools/codestarts/quarkus/ConfigYamlCodestartTest.java
@@ -4,6 +4,7 @@
import static io.quarkus.devtools.codestarts.quarkus.QuarkusCodestartCatalog.Language.KOTLIN;
import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.junit.jupiter.api.extension.RegisterExtension;
import io.quarkus.devtools.testing.codestarts.QuarkusCodestartTest;
@@ -20,7 +21,12 @@ public class ConfigYamlCodestartTest {
void testContent() throws Throwable {
codestartTest.checkGeneratedSource("org.acme.GreetingConfig");
codestartTest.assertThatGeneratedFileMatchSnapshot(JAVA, "src/main/resources/application.yml");
- //codestartTest.buildAllProjects();
+ }
+
+ @Test
+ @EnabledIfSystemProperty(named = "build-projects", matches = "true")
+ void buildAllProjectsForLocalUse() throws Throwable {
+ codestartTest.buildAllProjects();
}
}
diff --git a/devtools/project-core-extension-codestarts/src/test/java/io/quarkus/devtools/codestarts/quarkus/FunqyHttpCodestartTest.java b/integration-tests/devtools/src/test/java/io/quarkus/devtools/codestarts/quarkus/FunqyHttpCodestartTest.java
similarity index 76%
rename from devtools/project-core-extension-codestarts/src/test/java/io/quarkus/devtools/codestarts/quarkus/FunqyHttpCodestartTest.java
rename to integration-tests/devtools/src/test/java/io/quarkus/devtools/codestarts/quarkus/FunqyHttpCodestartTest.java
index 52e192c2c83b1..e160321462d42 100644
--- a/devtools/project-core-extension-codestarts/src/test/java/io/quarkus/devtools/codestarts/quarkus/FunqyHttpCodestartTest.java
+++ b/integration-tests/devtools/src/test/java/io/quarkus/devtools/codestarts/quarkus/FunqyHttpCodestartTest.java
@@ -3,6 +3,7 @@
import static io.quarkus.devtools.codestarts.quarkus.QuarkusCodestartCatalog.Language.JAVA;
import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.junit.jupiter.api.extension.RegisterExtension;
import io.quarkus.devtools.testing.codestarts.QuarkusCodestartTest;
@@ -20,7 +21,12 @@ void testContent() throws Throwable {
codestartTest.checkGeneratedSource("org.acme.MyFunctions");
codestartTest.checkGeneratedTestSource("org.acme.MyFunctionsTest");
codestartTest.checkGeneratedTestSource("org.acme.MyFunctionsIT");
- //codestartTest.buildAllProjects();
+ }
+
+ @Test
+ @EnabledIfSystemProperty(named = "build-projects", matches = "true")
+ void buildAllProjectsForLocalUse() throws Throwable {
+ codestartTest.buildAllProjects();
}
}
diff --git a/devtools/project-core-extension-codestarts/src/test/java/io/quarkus/devtools/codestarts/quarkus/PicocliCodestartTest.java b/integration-tests/devtools/src/test/java/io/quarkus/devtools/codestarts/quarkus/PicocliCodestartTest.java
similarity index 85%
rename from devtools/project-core-extension-codestarts/src/test/java/io/quarkus/devtools/codestarts/quarkus/PicocliCodestartTest.java
rename to integration-tests/devtools/src/test/java/io/quarkus/devtools/codestarts/quarkus/PicocliCodestartTest.java
index f331290d8260f..607617de02e8d 100644
--- a/devtools/project-core-extension-codestarts/src/test/java/io/quarkus/devtools/codestarts/quarkus/PicocliCodestartTest.java
+++ b/integration-tests/devtools/src/test/java/io/quarkus/devtools/codestarts/quarkus/PicocliCodestartTest.java
@@ -5,6 +5,7 @@
import static io.quarkus.devtools.testing.SnapshotTesting.checkContains;
import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.junit.jupiter.api.extension.RegisterExtension;
import io.quarkus.devtools.project.BuildTool;
@@ -34,7 +35,11 @@ void testContent() throws Throwable {
codestartGradleTest.assertThatGeneratedFile(JAVA, "README.md")
.satisfies(checkContains("./gradlew quarkusDev --quarkus-args='Quarky'"));
+ }
- //codestartTest.buildAllProjects();
+ @Test
+ @EnabledIfSystemProperty(named = "build-projects", matches = "true")
+ void buildAllProjectsForLocalUse() throws Throwable {
+ codestartTest.buildAllProjects();
}
}
diff --git a/devtools/project-core-extension-codestarts/src/test/java/io/quarkus/devtools/codestarts/quarkus/RESTEasyQuteCodestartTest.java b/integration-tests/devtools/src/test/java/io/quarkus/devtools/codestarts/quarkus/RESTEasyQuteCodestartTest.java
similarity index 77%
rename from devtools/project-core-extension-codestarts/src/test/java/io/quarkus/devtools/codestarts/quarkus/RESTEasyQuteCodestartTest.java
rename to integration-tests/devtools/src/test/java/io/quarkus/devtools/codestarts/quarkus/RESTEasyQuteCodestartTest.java
index 5fa10cfe06324..f8e2fb686db8e 100644
--- a/devtools/project-core-extension-codestarts/src/test/java/io/quarkus/devtools/codestarts/quarkus/RESTEasyQuteCodestartTest.java
+++ b/integration-tests/devtools/src/test/java/io/quarkus/devtools/codestarts/quarkus/RESTEasyQuteCodestartTest.java
@@ -4,6 +4,7 @@
import static io.quarkus.devtools.codestarts.quarkus.QuarkusCodestartCatalog.Language.KOTLIN;
import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.junit.jupiter.api.extension.RegisterExtension;
import io.quarkus.devtools.testing.codestarts.QuarkusCodestartTest;
@@ -20,6 +21,11 @@ public class RESTEasyQuteCodestartTest {
void testContent() throws Throwable {
codestartTest.checkGeneratedSource("org.acme.SomePage");
codestartTest.assertThatGeneratedFileMatchSnapshot(JAVA, "src/main/resources/templates/page.qute.html");
- //codestartTest.buildAllProjects();
+ }
+
+ @Test
+ @EnabledIfSystemProperty(named = "build-projects", matches = "true")
+ void buildAllProjectsForLocalUse() throws Throwable {
+ codestartTest.buildAllProjects();
}
}
diff --git a/devtools/project-core-extension-codestarts/src/test/resources/__snapshots__/ConfigYamlCodestartTest/testContent/src_main_java_ilove_quark_us_GreetingConfig.java b/integration-tests/devtools/src/test/resources/__snapshots__/ConfigYamlCodestartTest/testContent/src_main_java_ilove_quark_us_GreetingConfig.java
similarity index 100%
rename from devtools/project-core-extension-codestarts/src/test/resources/__snapshots__/ConfigYamlCodestartTest/testContent/src_main_java_ilove_quark_us_GreetingConfig.java
rename to integration-tests/devtools/src/test/resources/__snapshots__/ConfigYamlCodestartTest/testContent/src_main_java_ilove_quark_us_GreetingConfig.java
diff --git a/devtools/project-core-extension-codestarts/src/test/resources/__snapshots__/ConfigYamlCodestartTest/testContent/src_main_kotlin_ilove_quark_us_GreetingConfig.kt b/integration-tests/devtools/src/test/resources/__snapshots__/ConfigYamlCodestartTest/testContent/src_main_kotlin_ilove_quark_us_GreetingConfig.kt
similarity index 100%
rename from devtools/project-core-extension-codestarts/src/test/resources/__snapshots__/ConfigYamlCodestartTest/testContent/src_main_kotlin_ilove_quark_us_GreetingConfig.kt
rename to integration-tests/devtools/src/test/resources/__snapshots__/ConfigYamlCodestartTest/testContent/src_main_kotlin_ilove_quark_us_GreetingConfig.kt
diff --git a/devtools/project-core-extension-codestarts/src/test/resources/__snapshots__/ConfigYamlCodestartTest/testContent/src_main_resources_application.yml b/integration-tests/devtools/src/test/resources/__snapshots__/ConfigYamlCodestartTest/testContent/src_main_resources_application.yml
similarity index 100%
rename from devtools/project-core-extension-codestarts/src/test/resources/__snapshots__/ConfigYamlCodestartTest/testContent/src_main_resources_application.yml
rename to integration-tests/devtools/src/test/resources/__snapshots__/ConfigYamlCodestartTest/testContent/src_main_resources_application.yml
diff --git a/devtools/project-core-extension-codestarts/src/test/resources/__snapshots__/FunqyHttpCodestartTest/testContent/src_main_java_ilove_quark_us_MyFunctions.java b/integration-tests/devtools/src/test/resources/__snapshots__/FunqyHttpCodestartTest/testContent/src_main_java_ilove_quark_us_MyFunctions.java
similarity index 100%
rename from devtools/project-core-extension-codestarts/src/test/resources/__snapshots__/FunqyHttpCodestartTest/testContent/src_main_java_ilove_quark_us_MyFunctions.java
rename to integration-tests/devtools/src/test/resources/__snapshots__/FunqyHttpCodestartTest/testContent/src_main_java_ilove_quark_us_MyFunctions.java
diff --git a/devtools/project-core-extension-codestarts/src/test/resources/__snapshots__/FunqyHttpCodestartTest/testContent/src_test_java_ilove_quark_us_MyFunctionsIT.java b/integration-tests/devtools/src/test/resources/__snapshots__/FunqyHttpCodestartTest/testContent/src_test_java_ilove_quark_us_MyFunctionsIT.java
similarity index 100%
rename from devtools/project-core-extension-codestarts/src/test/resources/__snapshots__/FunqyHttpCodestartTest/testContent/src_test_java_ilove_quark_us_MyFunctionsIT.java
rename to integration-tests/devtools/src/test/resources/__snapshots__/FunqyHttpCodestartTest/testContent/src_test_java_ilove_quark_us_MyFunctionsIT.java
diff --git a/devtools/project-core-extension-codestarts/src/test/resources/__snapshots__/FunqyHttpCodestartTest/testContent/src_test_java_ilove_quark_us_MyFunctionsTest.java b/integration-tests/devtools/src/test/resources/__snapshots__/FunqyHttpCodestartTest/testContent/src_test_java_ilove_quark_us_MyFunctionsTest.java
similarity index 100%
rename from devtools/project-core-extension-codestarts/src/test/resources/__snapshots__/FunqyHttpCodestartTest/testContent/src_test_java_ilove_quark_us_MyFunctionsTest.java
rename to integration-tests/devtools/src/test/resources/__snapshots__/FunqyHttpCodestartTest/testContent/src_test_java_ilove_quark_us_MyFunctionsTest.java
diff --git a/devtools/project-core-extension-codestarts/src/test/resources/__snapshots__/PicocliCodestartTest/testContent/src_main_java_ilove_quark_us_GreetingCommand.java b/integration-tests/devtools/src/test/resources/__snapshots__/PicocliCodestartTest/testContent/src_main_java_ilove_quark_us_GreetingCommand.java
similarity index 100%
rename from devtools/project-core-extension-codestarts/src/test/resources/__snapshots__/PicocliCodestartTest/testContent/src_main_java_ilove_quark_us_GreetingCommand.java
rename to integration-tests/devtools/src/test/resources/__snapshots__/PicocliCodestartTest/testContent/src_main_java_ilove_quark_us_GreetingCommand.java
diff --git a/devtools/project-core-extension-codestarts/src/test/resources/__snapshots__/PicocliCodestartTest/testContent/src_main_kotlin_ilove_quark_us_GreetingCommand.kt b/integration-tests/devtools/src/test/resources/__snapshots__/PicocliCodestartTest/testContent/src_main_kotlin_ilove_quark_us_GreetingCommand.kt
similarity index 100%
rename from devtools/project-core-extension-codestarts/src/test/resources/__snapshots__/PicocliCodestartTest/testContent/src_main_kotlin_ilove_quark_us_GreetingCommand.kt
rename to integration-tests/devtools/src/test/resources/__snapshots__/PicocliCodestartTest/testContent/src_main_kotlin_ilove_quark_us_GreetingCommand.kt
diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyQuteCodestartTest/testContent/src_main_java_ilove_quark_us_SomePage.java b/integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyQuteCodestartTest/testContent/src_main_java_ilove_quark_us_SomePage.java
index 67c59b69d8e42..b38e25e600637 100644
--- a/integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyQuteCodestartTest/testContent/src_main_java_ilove_quark_us_SomePage.java
+++ b/integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyQuteCodestartTest/testContent/src_main_java_ilove_quark_us_SomePage.java
@@ -7,18 +7,19 @@
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
+import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
@Path("/some-page")
public class SomePage {
@Inject
- Template somePage;
+ Template page;
@GET
@Produces(MediaType.TEXT_HTML)
- public TemplateInstance get(String name) {
- return somePage.data("name", name);
+ public TemplateInstance get(@QueryParam("name") String name) {
+ return page.data("name", name);
}
}
diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyQuteCodestartTest/testContent/src_main_kotlin_ilove_quark_us_SomePage.kt b/integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyQuteCodestartTest/testContent/src_main_kotlin_ilove_quark_us_SomePage.kt
index 088fe55771cf5..367550a571035 100644
--- a/integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyQuteCodestartTest/testContent/src_main_kotlin_ilove_quark_us_SomePage.kt
+++ b/integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyQuteCodestartTest/testContent/src_main_kotlin_ilove_quark_us_SomePage.kt
@@ -6,17 +6,18 @@ import javax.inject.Inject
import javax.ws.rs.GET
import javax.ws.rs.Path
import javax.ws.rs.Produces
+import javax.ws.rs.QueryParam
import javax.ws.rs.core.MediaType
@Path("/some-page")
class SomePage {
@Inject
- lateinit var somePage: Template
+ lateinit var page: Template
@GET
@Produces(MediaType.TEXT_HTML)
- operator fun get(name: String?): TemplateInstance {
- return somePage.data("name", name)
+ operator fun get(@QueryParam("name") name: String?): TemplateInstance {
+ return page.data("name", name)
}
}
\ No newline at end of file
diff --git a/devtools/project-core-extension-codestarts/src/test/resources/__snapshots__/RESTEasyQuteCodestartTest/testContent/src_main_resources_templates_page.qute.html b/integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyQuteCodestartTest/testContent/src_main_resources_templates_page.qute.html
similarity index 100%
rename from devtools/project-core-extension-codestarts/src/test/resources/__snapshots__/RESTEasyQuteCodestartTest/testContent/src_main_resources_templates_page.qute.html
rename to integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyQuteCodestartTest/testContent/src_main_resources_templates_page.qute.html
diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyQuteCodestartTest/testContent/src_main_resources_templates_some-page.qute.html b/integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyQuteCodestartTest/testContent/src_main_resources_templates_some-page.qute.html
deleted file mode 100644
index 46c12a74b617c..0000000000000
--- a/integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyQuteCodestartTest/testContent/src_main_resources_templates_some-page.qute.html
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
- Hello {name ?: Qute}
-
-
-
-Hello {name ?: Qute}
-
-Create your web page using Quarkus RESTEasy & Qute
-
-