diff options
Diffstat (limited to 'framework/src/test')
-rw-r--r-- | framework/src/test/java/org/onap/cli/fw/error/OnapCommandErrorTest.java | 8 |
1 files changed, 8 insertions, 0 deletions
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()); } } |