aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Timoney <dt5972@att.com>2018-03-27 18:59:34 +0000
committerGerrit Code Review <gerrit@onap.org>2018-03-27 18:59:34 +0000
commit2d2c5f44cf489baa2a0c27af6b773bacf64faf17 (patch)
treef51bf8367e641abd99fc3daf7405d2c7e35a65ff
parent4a8c2cb9920983f8b8af75be90f7511a59e923f5 (diff)
parent22a9e045d42ad629010cc4200369a4453fbe0df7 (diff)
Merge "coverageSdncFlatJsonDmaapConsumer"
-rw-r--r--dmaap-listener/src/test/java/org/onap/ccsdk/sli/northbound/dmaapclient/TestSdncJsonDmaapConsumer.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/dmaap-listener/src/test/java/org/onap/ccsdk/sli/northbound/dmaapclient/TestSdncJsonDmaapConsumer.java b/dmaap-listener/src/test/java/org/onap/ccsdk/sli/northbound/dmaapclient/TestSdncJsonDmaapConsumer.java
index 0d65231d..01bd3cf2 100644
--- a/dmaap-listener/src/test/java/org/onap/ccsdk/sli/northbound/dmaapclient/TestSdncJsonDmaapConsumer.java
+++ b/dmaap-listener/src/test/java/org/onap/ccsdk/sli/northbound/dmaapclient/TestSdncJsonDmaapConsumer.java
@@ -19,4 +19,16 @@ public class TestSdncJsonDmaapConsumer {
SdncFlatJsonDmaapConsumer consumer = new SdncFlatJsonDmaapConsumer();
consumer.processMsg(null);
}
+
+ @Test(expected = InvalidMessageException.class)
+ public void testProcessMsgNullFieldMap_shouldThrowException() throws Exception {
+ SdncFlatJsonDmaapConsumer consumer = new SdncFlatJsonDmaapConsumer();
+
+ String msg = "{\n" +
+ " \"input\" : { \n" +
+ " }\n" +
+ "}";
+
+ consumer.processMsg(msg);
+ }
}