Skip to content

Commit a5566aa

Browse files
committed
Fix tests
1 parent 756981e commit a5566aa

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

base/src/test/java/io/quarkus/code/service/QuarkusProjectServiceTest.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,12 @@ void testDefault(TestInfo info) throws Throwable {
100100
}
101101

102102
@Test
103-
@DisplayName("When using 3.2 project, then, it should create all the files correctly with the requested content")
104-
void test3__2(TestInfo info) throws Throwable {
103+
@DisplayName("When using 3.15 project, then, it should create all the files correctly with the requested content")
104+
void test3__15(TestInfo info) throws Throwable {
105105
// When
106106
QuarkusProjectService creator = getProjectService();
107-
PlatformInfo platformInfo = platformService.platformInfo("3.2");
108-
Path projDir = creator.createTmp(platformInfo, ProjectDefinition.builder().streamKey("3.2").build());
107+
PlatformInfo platformInfo = platformService.platformInfo("3.15");
108+
Path projDir = creator.createTmp(platformInfo, ProjectDefinition.builder().streamKey("3.15").build());
109109

110110
// Then
111111
assertThatDirectoryTreeMatchSnapshots(info, projDir);
@@ -121,9 +121,9 @@ void test3__2(TestInfo info) throws Throwable {
121121
.satisfies(checkContains("<quarkus.platform.version>%s</quarkus.platform.version>"
122122
.formatted(platformInfo.extensionCatalog().getBom().getVersion())))
123123
.satisfies(checkContains("<groupId>io.quarkus</groupId>"))
124-
.satisfies(checkContains("<artifactId>quarkus-resteasy-reactive</artifactId>"))
124+
.satisfies(checkContains("<artifactId>quarkus-rest</artifactId>"))
125125
.satisfies(checkContains("<maven.compiler.release>%s</maven.compiler.release>"
126-
.formatted(platformService.platformInfo("3.2").stream().javaCompatibility().recommended())))
126+
.formatted(platformService.platformInfo("3.15").stream().javaCompatibility().recommended())))
127127
.satisfies(checkContains("<artifactId>rest-assured</artifactId>"));
128128

129129
assertThatMatchSnapshot(info, projDir, "src/main/java/org/acme/GreetingResource.java")

base/src/test/resources/__snapshots__/QuarkusProjectServiceTest/test3__2/dir-tree.snapshot renamed to base/src/test/resources/__snapshots__/QuarkusProjectServiceTest/test3__15/dir-tree.snapshot

-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ src/main/java/org/
2222
src/main/java/org/acme/
2323
src/main/java/org/acme/GreetingResource.java
2424
src/main/resources/
25-
src/main/resources/META-INF/
26-
src/main/resources/META-INF/resources/
27-
src/main/resources/META-INF/resources/index.html
2825
src/main/resources/application.properties
2926
src/test/
3027
src/test/java/
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ public class GreetingResource {
1111
@GET
1212
@Produces(MediaType.TEXT_PLAIN)
1313
public String hello() {
14-
return "Hello from RESTEasy Reactive";
14+
return "Hello from Quarkus REST";
1515
}
1616
}

0 commit comments

Comments
 (0)