Skip to content

Commit ee7a017

Browse files
committed
Update Codestart due to conflict and possible CI issues
Signed-off-by: Matheus Cruz <[email protected]>
1 parent 765215f commit ee7a017

File tree

6 files changed

+18
-10
lines changed

6 files changed

+18
-10
lines changed

core/integration-tests/src/test/java/io/quarkiverse/flow/it/FlowCodestartTest.java

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,33 @@
11
package io.quarkiverse.flow.it;
22

3+
import static io.quarkus.devtools.codestarts.quarkus.QuarkusCodestartCatalog.Language.JAVA;
4+
35
import java.io.IOException;
6+
import java.util.Map;
47

58
import org.junit.jupiter.api.Test;
69
import org.junit.jupiter.api.extension.RegisterExtension;
710

8-
import io.quarkus.devtools.codestarts.quarkus.QuarkusCodestartCatalog;
11+
import io.quarkus.devtools.codestarts.quarkus.QuarkusCodestartData;
912
import io.quarkus.devtools.testing.codestarts.QuarkusCodestartTest;
13+
import io.quarkus.maven.dependency.ArtifactKey;
1014

1115
public class FlowCodestartTest {
1216

1317
@RegisterExtension
1418
public static QuarkusCodestartTest codestartTest = QuarkusCodestartTest.builder()
15-
.languages(QuarkusCodestartCatalog.Language.JAVA)
19+
.languages(JAVA)
1620
.setupStandaloneExtensionTest("io.quarkiverse.flow:quarkus-flow")
21+
.extension(ArtifactKey.fromString("io.quarkus:quarkus-rest-jackson"))
22+
.putData(QuarkusCodestartData.QuarkusDataKey.APP_CONFIG, Map.of("quarkus.http.test-port", "9999"))
1723
.build();
1824

1925
@Test
2026
void testContent() throws Throwable {
21-
codestartTest.checkGeneratedSource("org.acme.HelloWorkflow");
22-
codestartTest.checkGeneratedSource("org.acme.HelloResource");
23-
codestartTest.checkGeneratedSource("org.acme.Message");
24-
codestartTest.checkGeneratedTestSource("org.acme.HelloResourceTest");
27+
codestartTest.assertThatGeneratedFileMatchSnapshot(JAVA, "src/main/java/ilove/quark/us/HelloWorkflow.java");
28+
codestartTest.assertThatGeneratedFileMatchSnapshot(JAVA, "src/main/java/ilove/quark/us/HelloResource.java");
29+
codestartTest.assertThatGeneratedFileMatchSnapshot(JAVA, "src/main/java/ilove/quark/us/Message.java");
30+
codestartTest.assertThatGeneratedFileMatchSnapshot(JAVA, "src/test/java/ilove/quark/us/HelloResourceTest.java");
2531
}
2632

2733
@Test

core/integration-tests/src/test/resources/__snapshots__/FlowCodestartTest/testContent/src_main_java_ilove_quark_us_HelloResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import java.util.Map;
1010
import java.util.concurrent.CompletionStage;
1111

12-
@Path("/hello")
12+
@Path("/hello-flow")
1313
@ApplicationScoped
1414
public class HelloResource {
1515

core/integration-tests/src/test/resources/__snapshots__/FlowCodestartTest/testContent/src_test_java_ilove_quark_us_HelloResourceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class HelloResourceTest {
1212
@Test
1313
void hello_returns_hello_world() {
1414
given()
15-
.when().get("/hello")
15+
.when().get("/hello-flow")
1616
.then()
1717
.statusCode(200)
1818
.body("message", equalTo("hello world!"));

core/runtime/src/main/codestarts/quarkus/quarkus-flow-codestart/codestart.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@ metadata:
88
related-guide-section: https://docs.quarkiverse.io/quarkus-flow/dev/index.html
99
language:
1010
java:
11+
dependencies:
12+
- io.quarkus:quarkus-rest-jackson
1113
test-dependencies:
1214
- io.rest-assured:rest-assured

core/runtime/src/main/codestarts/quarkus/quarkus-flow-codestart/java/src/main/java/org/acme/HelloResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import java.util.Map;
1010
import java.util.concurrent.CompletionStage;
1111

12-
@Path("/hello")
12+
@Path("/hello-flow")
1313
@ApplicationScoped
1414
public class HelloResource {
1515

core/runtime/src/main/codestarts/quarkus/quarkus-flow-codestart/java/src/test/java/org/acme/HelloResourceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class HelloResourceTest {
1212
@Test
1313
void hello_returns_hello_world() {
1414
given()
15-
.when().get("/hello")
15+
.when().get("/hello-flow")
1616
.then()
1717
.statusCode(200)
1818
.body("message", equalTo("hello world!"));

0 commit comments

Comments
 (0)