From 76adc8247ba3a6bd5537eab58a03b0d45ef33482 Mon Sep 17 00:00:00 2001 From: Sandeep J Date: Wed, 19 Sep 2018 01:38:52 +0530 Subject: added test case to SpringServiceTest.java to increase code coverage Issue-ID: CCSDK-552 Change-Id: I7d395d354468469b919b87a69ec7542e90346b6c Signed-off-by: Sandeep J --- .../org/onap/ccsdk/apps/ms/neng/core/service/SpringServiceTest.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ms/neng') diff --git a/ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/core/service/SpringServiceTest.java b/ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/core/service/SpringServiceTest.java index 7ea63e61..22063a4d 100644 --- a/ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/core/service/SpringServiceTest.java +++ b/ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/core/service/SpringServiceTest.java @@ -109,6 +109,11 @@ public class SpringServiceTest { Assert.assertNotNull(springserviceImpl.releaseNetworkElementName(request)); } + @Test(expected=Exception.class) + public void releaseNetworkElementNameTestForNull() throws Exception { + springserviceImpl.releaseNetworkElementName(null); + } + @Test public void testGetQuickHello() { Assert.assertTrue(springserviceImpl.getQuickHello("testMessage") instanceof HelloWorld); -- cgit 1.2.3-korg