diff --git a/devtools/cli/src/test/java/io/quarkus/cli/CliTest.java b/devtools/cli/src/test/java/io/quarkus/cli/CliTest.java index a8d2e2e644b9c..33a0872b1a995 100644 --- a/devtools/cli/src/test/java/io/quarkus/cli/CliTest.java +++ b/devtools/cli/src/test/java/io/quarkus/cli/CliTest.java @@ -271,10 +271,10 @@ public void testCreateWithAppConfig() throws Exception { List configs = Arrays.asList("custom.app.config1=val1", "custom.app.config2=val2", "lib.config=val3"); - execute("create --app-config=", StringUtils.join(configs, ",")); + execute("create", "--app-config=" + StringUtils.join(configs, ",")); - Assertions.assertEquals(0, exitCode); - Assertions.assertTrue(screen.contains("Project my-rest-project created")); + Assertions.assertEquals(CommandLine.ExitCode.OK, exitCode); + Assertions.assertTrue(screen.contains("Project my-project-with-configs created")); Assertions.assertTrue(project.resolve("src/main/resources/application.properties").toFile().exists()); String propertiesFile = readString(project.resolve("src/main/resources/application.properties"));