Skip to content

Commit cb878f4

Browse files
gnodetclaude
andcommitted
CAMEL-23894: Apply code formatter to ExportTest
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f036d84 commit cb878f4

1 file changed

Lines changed: 21 additions & 14 deletions

File tree

  • dsl/camel-jbang/camel-jbang-core/src/test/java/org/apache/camel/dsl/jbang/core/commands

dsl/camel-jbang/camel-jbang-core/src/test/java/org/apache/camel/dsl/jbang/core/commands/ExportTest.java

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,9 @@ public void shouldExportDifferentVersion(RuntimeType rt) throws Exception {
146146
public void shouldGenerateProjectWithBuildProperties(RuntimeType rt) throws Exception {
147147
LOG.info("shouldGenerateProjectWithBuildProperties {}", rt);
148148
Export command = new Export(new CamelJBangMain());
149-
List<String> cmdArgs = new ArrayList<>(List.of("--gav=examples:route:1.0.0", "--dir=" + workingDir,
150-
"--runtime=%s".formatted(rt.runtime()), "--build-property=foo=bar"));
149+
List<String> cmdArgs = new ArrayList<>(
150+
List.of("--gav=examples:route:1.0.0", "--dir=" + workingDir,
151+
"--runtime=%s".formatted(rt.runtime()), "--build-property=foo=bar"));
151152
if (rt == RuntimeType.springBoot) {
152153
cmdArgs.add("--camel-version=" + RELEASED_CAMEL_VERSION);
153154
}
@@ -169,8 +170,9 @@ public void shouldGenerateProjectWithBuildProperties(RuntimeType rt) throws Exce
169170
public void testShouldGenerateProjectMultivalue(RuntimeType rt) throws Exception {
170171
LOG.info("testShouldGenerateProjectMultivalue {}", rt);
171172
Export command = new Export(new CamelJBangMain());
172-
List<String> cmdArgs = new ArrayList<>(List.of("--gav=examples:route:1.0.0", "--dir=" + workingDir,
173-
"--runtime=%s".formatted(rt.runtime()), "--dep=foo:bar:1.0,jupiter:rocks:2.0"));
173+
List<String> cmdArgs = new ArrayList<>(
174+
List.of("--gav=examples:route:1.0.0", "--dir=" + workingDir,
175+
"--runtime=%s".formatted(rt.runtime()), "--dep=foo:bar:1.0,jupiter:rocks:2.0"));
174176
if (rt == RuntimeType.springBoot) {
175177
cmdArgs.add("--camel-version=" + RELEASED_CAMEL_VERSION);
176178
}
@@ -228,8 +230,9 @@ private static boolean containsCamelVersion(String... args) {
228230
public void shouldExportWithJpaAndHibernate(RuntimeType rt) throws Exception {
229231
LOG.info("shouldExportWithJpaAndHibernate {}", rt);
230232
Export command = new Export(new CamelJBangMain());
231-
List<String> cmdArgs = new ArrayList<>(List.of("--gav=examples:route:1.0.0", "--dir=" + workingDir,
232-
"--runtime=%s".formatted(rt.runtime()), "--dep=camel:jpa"));
233+
List<String> cmdArgs = new ArrayList<>(
234+
List.of("--gav=examples:route:1.0.0", "--dir=" + workingDir,
235+
"--runtime=%s".formatted(rt.runtime()), "--dep=camel:jpa"));
233236
if (rt == RuntimeType.springBoot) {
234237
cmdArgs.add("--camel-version=" + RELEASED_CAMEL_VERSION);
235238
}
@@ -777,8 +780,9 @@ public void shouldExportGroovy(RuntimeType rt) throws Exception {
777780
public void shouldExportObserve(RuntimeType rt) throws Exception {
778781
LOG.info("shouldExportObserve {}", rt);
779782
Export command = new Export(new CamelJBangMain());
780-
List<String> cmdArgs = new ArrayList<>(List.of("--gav=examples:route:1.0.0", "--dir=" + workingDir,
781-
"--runtime=%s".formatted(rt.runtime()), "--observe=true"));
783+
List<String> cmdArgs = new ArrayList<>(
784+
List.of("--gav=examples:route:1.0.0", "--dir=" + workingDir,
785+
"--runtime=%s".formatted(rt.runtime()), "--observe=true"));
782786
if (rt == RuntimeType.springBoot) {
783787
cmdArgs.add("--camel-version=" + RELEASED_CAMEL_VERSION);
784788
}
@@ -811,8 +815,9 @@ public void shouldExportObserve(RuntimeType rt) throws Exception {
811815
public void shouldExportFromDir(RuntimeType rt) throws Exception {
812816
LOG.info("shouldExportFromDir {}", rt);
813817
Export command = new Export(new CamelJBangMain());
814-
List<String> cmdArgs = new ArrayList<>(List.of("--gav=examples:route:1.0.0", "--dir=" + workingDir,
815-
"--runtime=%s".formatted(rt.runtime())));
818+
List<String> cmdArgs = new ArrayList<>(
819+
List.of("--gav=examples:route:1.0.0", "--dir=" + workingDir,
820+
"--runtime=%s".formatted(rt.runtime())));
816821
if (rt == RuntimeType.springBoot) {
817822
cmdArgs.add("--camel-version=" + RELEASED_CAMEL_VERSION);
818823
}
@@ -934,8 +939,9 @@ public void shouldOverrideQuarkusVersionFromSystemProperty() throws Exception {
934939
public void shouldExportHawtio(RuntimeType rt) throws Exception {
935940
LOG.info("shouldExportHawtio {}", rt);
936941
Export command = new Export(new CamelJBangMain());
937-
List<String> cmdArgs = new ArrayList<>(List.of("--gav=examples:route:1.0.0", "--dir=" + workingDir,
938-
"--runtime=%s".formatted(rt.runtime()), "--hawtio=true"));
942+
List<String> cmdArgs = new ArrayList<>(
943+
List.of("--gav=examples:route:1.0.0", "--dir=" + workingDir,
944+
"--runtime=%s".formatted(rt.runtime()), "--hawtio=true"));
939945
if (rt == RuntimeType.springBoot) {
940946
cmdArgs.add("--camel-version=" + RELEASED_CAMEL_VERSION);
941947
}
@@ -985,8 +991,9 @@ public void shouldExportHawtio(RuntimeType rt) throws Exception {
985991
@MethodSource("runtimeProvider")
986992
public void shouldContainJibProfile(RuntimeType rt) throws Exception {
987993
Export command = new Export(new CamelJBangMain());
988-
List<String> cmdArgs = new ArrayList<>(List.of("--gav=examples:route:1.0.0", "--dir=" + workingDir,
989-
"--runtime=%s".formatted(rt.runtime())));
994+
List<String> cmdArgs = new ArrayList<>(
995+
List.of("--gav=examples:route:1.0.0", "--dir=" + workingDir,
996+
"--runtime=%s".formatted(rt.runtime())));
990997
if (rt == RuntimeType.springBoot) {
991998
cmdArgs.add("--camel-version=" + RELEASED_CAMEL_VERSION);
992999
}

0 commit comments

Comments
 (0)