Coverage improvement for SdncFlatJsonDmaapConsumer
https://jira.onap.org/browse/CCSDK-213?jql=project%20%3D%20CCSDK%20AND%20text%20~%20coverage
Issue-ID: CCSDK-213
Change-Id: I95e824c5c83b9c36ce0c475368235182e851c254
Signed-off-by: shashikanth.vh <shashikanth.vh@huawei.com>
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);
+ }
}