diff options
author | Vijay VK <vv770d@att.com> | 2018-02-21 16:52:31 +0000 |
---|---|---|
committer | VENKATESH KUMAR <vv770d@att.com> | 2018-02-21 11:53:15 -0500 |
commit | bdf15f5602b0c2592fc960affab464cd6c6d3904 (patch) | |
tree | 06e5561d654d1005d6e312bf5c589c8cddd04e9e /src/test/java/org/onap/dcae/vestest/TestEventReceipt.java | |
parent | 438257ad8f86b742935f2f44eaa6a6eb077d9336 (diff) |
fix sonar issue and additional test
Change-Id: If32e2319c71b947b7e5c68410f32b19ba5ac8125
Signed-off-by: VENKATESH KUMAR <vv770d@att.com>
Issue-ID: DCAEGEN2-227
Diffstat (limited to 'src/test/java/org/onap/dcae/vestest/TestEventReceipt.java')
-rw-r--r-- | src/test/java/org/onap/dcae/vestest/TestEventReceipt.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/java/org/onap/dcae/vestest/TestEventReceipt.java b/src/test/java/org/onap/dcae/vestest/TestEventReceipt.java index 668c718a..3af66fb0 100644 --- a/src/test/java/org/onap/dcae/vestest/TestEventReceipt.java +++ b/src/test/java/org/onap/dcae/vestest/TestEventReceipt.java @@ -34,6 +34,7 @@ import org.onap.dcae.commonFunction.CommonStartup; import org.onap.dcae.commonFunction.CommonStartup.QueueFullException;
import org.onap.dcae.commonFunction.CustomExceptionLoader;
import org.onap.dcae.restapi.endpoints.EventReceipt;
+import org.onap.dcae.restapi.endpoints.Ui;
import com.att.nsa.apiServer.endpoints.NsaBaseEndpoint;
import com.att.nsa.drumlin.service.framework.context.DrumlinRequestContext;
@@ -120,4 +121,18 @@ public class TestEventReceipt extends NsaBaseEndpoint { }
assertEquals(true, true);
}
+
+ @Test
+ public void testUI() {
+
+ try {
+ Ui.hello(null);
+ }
+ catch (Exception e)
+ {
+ //As context object is null, handling null pointer exception.
+ Log.debug("Response object creation failure");
+ }
+ assertEquals(true, true);
+ }
}
|