commit | 2d2c5f44cf489baa2a0c27af6b773bacf64faf17 | [log] [tgz] |
---|---|---|
author | Dan Timoney <dt5972@att.com> | Tue Mar 27 18:59:34 2018 +0000 |
committer | Gerrit Code Review <gerrit@onap.org> | Tue Mar 27 18:59:34 2018 +0000 |
tree | f51bf8367e641abd99fc3daf7405d2c7e35a65ff | |
parent | 4a8c2cb9920983f8b8af75be90f7511a59e923f5 [diff] | |
parent | 22a9e045d42ad629010cc4200369a4453fbe0df7 [diff] |
Merge "coverageSdncFlatJsonDmaapConsumer"
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 0d65231..01bd3cf 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 @@ 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); + } }