From 2b21188b82e21eb87c4e79a6f31beff9325ab2ea Mon Sep 17 00:00:00 2001 From: liamfallon Date: Thu, 27 Sep 2018 14:29:21 +0100 Subject: Add unit test for Apex command line tools THere was no unit test for the command line tools. This review adds unit test and also fixes a few small bugs that showed up when uit test was run. Issue-ID: POLICY-1034 Change-Id: Ic19aacdb168fb5a6faa0cd83ed22ccfcedaa51f5 Signed-off-by: liamfallon --- .../java/org/onap/policy/apex/auth/clieditor/CommandLineEditorLoop.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'auth/cli-editor/src/main/java/org') diff --git a/auth/cli-editor/src/main/java/org/onap/policy/apex/auth/clieditor/CommandLineEditorLoop.java b/auth/cli-editor/src/main/java/org/onap/policy/apex/auth/clieditor/CommandLineEditorLoop.java index 48905292c..e95acedcd 100644 --- a/auth/cli-editor/src/main/java/org/onap/policy/apex/auth/clieditor/CommandLineEditorLoop.java +++ b/auth/cli-editor/src/main/java/org/onap/policy/apex/auth/clieditor/CommandLineEditorLoop.java @@ -126,7 +126,7 @@ public class CommandLineEditorLoop { if (parameters.checkSetOutputModelFileName()) { TextFileUtils.putStringAsTextFile(modelString, parameters.getOutputModelFileName()); } else { - System.out.println(modelString); + writer.println(modelString); } } -- cgit 1.2.3-korg