diff options
author | 2019-03-13 21:29:00 +0900 | |
---|---|---|
committer | 2019-03-14 12:23:10 +0900 | |
commit | 75a8540d5798d2a6981a8b6abd7dd2d4b3788346 (patch) | |
tree | 613135c36383e1bd73272a53a2ab225ef686054e /UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/exception/DMaapExceptionTest.java | |
parent | 77a725f2d27977f15ce585b2cd73fc357799dfda (diff) |
Increase test coverage for services/mapper
Add JUnit test case in UniversalVesAdapter
Issue-ID: DCAEGEN2-1331
Change-Id: I7b0e2bdb0a50801e5ebef3a10d816410ad4bdbd3
Signed-off-by: Parshad Patel <pars.patel@samsung.com>
Diffstat (limited to 'UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/exception/DMaapExceptionTest.java')
-rw-r--r-- | UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/exception/DMaapExceptionTest.java | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/exception/DMaapExceptionTest.java b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/exception/DMaapExceptionTest.java index a99e6d1..4da29de 100644 --- a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/exception/DMaapExceptionTest.java +++ b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/exception/DMaapExceptionTest.java @@ -19,14 +19,23 @@ */ package org.onap.universalvesadapter.exception; +import static org.junit.Assert.assertNotNull; import org.junit.Test; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; public class DMaapExceptionTest { + private static final Logger debugLogger = LoggerFactory.getLogger("debugLogger"); - @Test - public void test() { - DMaapException se = new DMaapException("message"); - DMaapException se1 = new DMaapException("message", se); - } - + @Test + public void test() { + DMaapException se = new DMaapException("message"); + assertNotNull(se); + DMaapException se1 = new DMaapException("message", se); + assertNotNull(se1); + DMaapException se2 = new DMaapException("message", se.getCause()); + assertNotNull(se2); + DMaapException se3 = new DMaapException("message", debugLogger, se); + assertNotNull(se3); + } } |