Skip to content

Commit ff2bdbe

Browse files
committed
Test update and final touches to codestart server extension
1 parent 63a076d commit ff2bdbe

File tree

2 files changed

+32
-29
lines changed

2 files changed

+32
-29
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
package io.quarkiverse.openapi.generator;
2+
3+
import org.junit.jupiter.api.Test;
4+
import org.junit.jupiter.api.extension.RegisterExtension;
5+
import org.junit.jupiter.params.ParameterizedTest;
6+
import org.junit.jupiter.params.provider.EnumSource;
7+
8+
import io.quarkus.devtools.codestarts.quarkus.QuarkusCodestartCatalog;
9+
import io.quarkus.devtools.testing.codestarts.QuarkusCodestartTest;
10+
11+
public class ServerCodeStartTest {
12+
13+
@RegisterExtension
14+
public static QuarkusCodestartTest codestartTest = QuarkusCodestartTest.builder()
15+
.languages(QuarkusCodestartCatalog.Language.JAVA, QuarkusCodestartCatalog.Language.KOTLIN,
16+
QuarkusCodestartCatalog.Language.SCALA)
17+
.setupStandaloneExtensionTest("io.quarkiverse.openapi.generator:quarkus.openapi.generator-codestart")
18+
.build();
19+
20+
@ParameterizedTest
21+
@EnumSource(QuarkusCodestartCatalog.Language.class)
22+
void testContent(QuarkusCodestartCatalog.Language language) throws Throwable {
23+
codestartTest.assertThatGeneratedFile(language, "codestart.yml")
24+
.content().contains("name: openapi-generator-server");
25+
}
26+
27+
@Test
28+
void buildAll() throws Throwable {
29+
codestartTest.buildAllProjects();
30+
}
31+
32+
}

server/integration-tests/runtime/src/test/java/io/quarkus/openapi/generator/deployment/it/ServerCodestartTest.java

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)