From c8c451d2e1214e4b44d8693dd13e03987baab4e2 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Mon, 18 Sep 2017 12:28:09 +0530 Subject: Fix sonar coverage issues CLI-43 Change-Id: I7dc674db9ffc0bd2281003b3a680e52a0af9baab Signed-off-by: Kanagaraj Manickam k00365106 --- .../src/test/java/org/onap/cli/fw/error/OnapCommandErrorTest.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'framework/src/test/java/org/onap') diff --git a/framework/src/test/java/org/onap/cli/fw/error/OnapCommandErrorTest.java b/framework/src/test/java/org/onap/cli/fw/error/OnapCommandErrorTest.java index dd42cdc5..704d4704 100644 --- a/framework/src/test/java/org/onap/cli/fw/error/OnapCommandErrorTest.java +++ b/framework/src/test/java/org/onap/cli/fw/error/OnapCommandErrorTest.java @@ -275,6 +275,10 @@ public class OnapCommandErrorTest { OnapCommandPersistProfileFailed failed = new OnapCommandPersistProfileFailed("error"); assertEquals("0x1302::Failed to persist profile details, error", failed.getMessage()); + + failed = new OnapCommandPersistProfileFailed(new Exception("error")); + + assertEquals("0x1302::Failed to persist profile details, error", failed.getMessage()); } @@ -283,5 +287,9 @@ public class OnapCommandErrorTest { OnapCommandLoadProfileFailed failed = new OnapCommandLoadProfileFailed("error"); assertEquals("0x1301::Failed to load profile details, error", failed.getMessage()); + + failed = new OnapCommandLoadProfileFailed(new Exception("error")); + + assertEquals("0x1301::Failed to load profile details, error", failed.getMessage()); } } -- cgit 1.2.3-korg