Skip to content

Commit 3b2e8aa

Browse files
committed
Avoid relying on catch all commands for tests
1 parent 62c58eb commit 3b2e8aa

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

devtools/cli/src/test/java/io/quarkus/cli/MavenProjectCreateForPlatformTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ static void configureRegistryAndMavenRepo() {
7979
@Test
8080
void testCreateForPlatformWithUpstream() throws Exception {
8181

82-
final CliDriver.Result createResult = run(workDir(), "create", "create-for-platform",
82+
final CliDriver.Result createResult = run(workDir(), "create", "app", "create-for-platform",
8383
"-P com.acme.quarkus.platform:acme-supersonic-bom:8.0.0", "-x supersonic,subatomic");
8484
createResult.echoSystemOut();
8585
createResult.echoSystemErr();

devtools/cli/src/test/java/io/quarkus/cli/MavenProjectInfoAndUpdateTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static void configureRegistryAndMavenRepo() {
5151
@Test
5252
void testClean() throws Exception {
5353

54-
final CliDriver.Result createResult = run(workDir(), "create", "acme-clean",
54+
final CliDriver.Result createResult = run(workDir(), "create", "app", "acme-clean",
5555
"-x supersonic,acme-quarkiverse-extension");
5656
assertThat(createResult.exitCode).isEqualTo(CommandLine.ExitCode.OK)
5757
.as(() -> "Expected OK return code." + createResult);
@@ -83,7 +83,7 @@ void testClean() throws Exception {
8383
@Test
8484
void testMisalignedPlatformExtensionVersion() throws Exception {
8585

86-
final CliDriver.Result createResult = run(workDir(), "create", "acme-misaligned-ext-version",
86+
final CliDriver.Result createResult = run(workDir(), "create", "app", "acme-misaligned-ext-version",
8787
"-x supersonic,acme-quarkiverse-extension,org.acme.quarkus.platform:acme-quarkus-subatomic:1.0.0");
8888
assertThat(createResult.exitCode).isEqualTo(CommandLine.ExitCode.OK)
8989
.as(() -> "Expected OK return code." + createResult);

devtools/cli/src/test/java/io/quarkus/cli/NotRegisteredExtensionWithCodestartTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ static void configureRegistryAndMavenRepo() {
3333

3434
@Test
3535
void test() throws Exception {
36-
final CliDriver.Result createResult = run(workDir(), "create", "acme-outlaw-codestart",
36+
final CliDriver.Result createResult = run(workDir(), "create", "app", "acme-outlaw-codestart",
3737
"-x org.acme.quarkus:acme-outlaw:6.6.6");
3838
assertThat(createResult.exitCode).isEqualTo(CommandLine.ExitCode.OK)
3939
.as(() -> "Expected OK return code." + createResult);

0 commit comments

Comments
 (0)