gnodet-bot commented on code in PR #31127:
URL: https://github.com/apache/camel/pull/31127#discussion_r4739657085


##########
dsl/camel-jbang/camel-jbang-core/src/test/java/org/apache/camel/dsl/jbang/core/commands/ExportTest.java:
##########
@@ -404,6 +404,31 @@ public void shouldGenerateJavaContent(RuntimeType rt) 
throws Exception {
         Assertions.assertTrue(new File(workingDir, "AGENTS.md").exists(), 
"Missing AGENTS.md");
     }
 
+    @Test
+    void shouldExportSpringBootWithExplicitCamelTestVersion() throws Exception 
{
+        // CAMEL-27767: camel-test-spring-junit6 must have an explicit 
<version> in the generated pom.xml
+        // when an older --camel-spring-boot-version is used that does not 
manage it in its BOM.
+        Export command = createCommand(RuntimeType.springBoot,
+                new String[] { "classpath:route.yaml" },
+                "--gav=examples:route:1.0.0", "--camel-version=" + 
RELEASED_CAMEL_VERSION,
+                "--dir=" + workingDir, "--quiet");

Review Comment:
   💡 **Nit:** `createCommand()` already sets `--gav=examples:route:1.0.0`, 
`--dir=workingDir`, and `--quiet` before applying the caller's `args`. Passing 
them again here is redundant (last-write-wins in picocli, so functionally 
harmless, but it obscures what's distinctive about this test).
   
   ```suggestion
           Export command = createCommand(RuntimeType.springBoot,
                   new String[] { "classpath:route.yaml" },
                   "--camel-version=" + RELEASED_CAMEL_VERSION);
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to