File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
it/src/test/java/org/eclipse/jkube/integrationtests/assertions Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 1414package org .eclipse .jkube .integrationtests .assertions ;
1515
1616import org .apache .maven .shared .invoker .InvocationResult ;
17+ import org .eclipse .jkube .integrationtests .maven .MavenInvocationResult ;
18+
19+ import java .util .Arrays ;
1720
1821public class InvocationResultAssertion {
1922
@@ -26,6 +29,10 @@ public static void assertInvocation(InvocationResult invocationResult) {
2629 if (invocationResult .getExecutionException () != null ) {
2730 message .append ("\n " ).append (invocationResult .getExecutionException ().getMessage ());
2831 }
32+ if (invocationResult instanceof MavenInvocationResult ){
33+ Arrays .stream (((MavenInvocationResult ) invocationResult ).getStdOut ().split ("\r ?\n " ))
34+ .forEach (line -> message .append ("\n > " ).append (line ));
35+ }
2936 throw new AssertionError (message .toString ());
3037 }
3138 }
You can’t perform that action at this time.
0 commit comments