gnodet commented on code in PR #26229:
URL: https://github.com/apache/camel/pull/26229#discussion_r3971514627


##########
dsl/camel-jbang/camel-jbang-it/src/test/java/org/apache/camel/dsl/jbang/it/support/JBangTestSupport.java:
##########
@@ -215,6 +215,12 @@ protected void checkCommandOutputs(String command, String 
contains) {
                 .contains(contains);
     }
 
+    protected void checkCommandOutputs(String command, String... contains) {
+        Assertions.assertThat(execute(command))
+                .as("command  " + getMainCommand() + " " + command + " should 
output each of these lines " + contains)

Review Comment:
   Two nits:
   1. `+ contains` → `+ java.util.Arrays.toString(contains)` (otherwise this 
prints `[Ljava.lang.String;@hash`)
   2. Double space: `"command  "` → `"command "`
   
   ```suggestion
       protected void checkCommandOutputs(String command, String... contains) {
           Assertions.assertThat(execute(command))
                   .as("command " + getMainCommand() + " " + command + " should 
output each of these lines " + java.util.Arrays.toString(contains))
                   .contains(contains);
       }
   ```



-- 
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