diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/src/main/java/org/onap/cli/main/OnapCli.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/main/src/main/java/org/onap/cli/main/OnapCli.java b/main/src/main/java/org/onap/cli/main/OnapCli.java index 30f5ab70..de6d232e 100644 --- a/main/src/main/java/org/onap/cli/main/OnapCli.java +++ b/main/src/main/java/org/onap/cli/main/OnapCli.java @@ -268,7 +268,9 @@ public class OnapCli { cmd = OnapCommandRegistrar.getRegistrar().get(args.get(0)); OnapCliArgsParser.populateParams(cmd.getParameters(), (List<String>) sampleTest.get(OnapCommandConstants.VERIFY_INPUT)); + this.print("\n***************Test Command: \n" + sampleTest.get(OnapCommandConstants.VERIFY_INPUT).toString()); + cmd.getParametersMap().get(OnapCommandConstants.DEFAULT_PARAMETER_DEBUG).setValue(Boolean.TRUE); Optional<OnapCommandParameter> contextOpt = cmd.getParameters().stream() .filter(e -> e.getName().equals(OnapCommandConstants.VERIFY_CONTEXT_PARAM)) @@ -301,7 +303,11 @@ public class OnapCli { } else { resultAtt.getValues().add(OnapCommandConstants.VERIFY_RESULT_FAIL); } + this.print(testResult.getDebugInfo()); + this.print("\n***************Expected Output: \n" + expectedOutput); + this.print("\n***************Actual Output: \n" + actualOutput); } + this.print(testSuiteResult.print()); } /** |