aboutsummaryrefslogtreecommitdiffstats
path: root/ms/neng/src
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2018-09-19 01:38:52 +0530
committerSandeep J <sandeejh@in.ibm.com>2018-09-19 01:39:05 +0530
commit76adc8247ba3a6bd5537eab58a03b0d45ef33482 (patch)
tree33135737e98be439eb97684f6eafc8ae26600893 /ms/neng/src
parent758bc233c125d2ffec0bf16618747af747aafa45 (diff)
added test case to SpringServiceTest.java
to increase code coverage Issue-ID: CCSDK-552 Change-Id: I7d395d354468469b919b87a69ec7542e90346b6c Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'ms/neng/src')
-rw-r--r--ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/core/service/SpringServiceTest.java5
1 files changed, 5 insertions, 0 deletions
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);