Junit testcase for SDNCCOntrollerRsp 26/107626/1
authorezhil <ezhrajam@in.ibm.com>
Wed, 13 May 2020 14:06:09 +0000 (19:36 +0530)
committerezhil <ezhrajam@in.ibm.com>
Wed, 13 May 2020 14:07:59 +0000 (19:37 +0530)
Issue-ID: USECASEUI-439
Change-Id: I935de837e75b6ddcd952a9ae8f4f432655c0bec2
Signed-off-by: ezhil <ezhrajam@in.ibm.com>
server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/SDNCControllerRspTest.java

index 9495b6a..2e4fde3 100644 (file)
@@ -40,6 +40,8 @@ import org.hibernate.Transaction;
 import mockit.Mock;
 import mockit.MockUp;
 
+import static org.junit.Assert.assertNotNull;
+
 public class SDNCControllerRspTest {
 
        @Before
@@ -52,8 +54,13 @@ public class SDNCControllerRspTest {
 
        @Test
        public void testSDNCControllerRsp() throws Exception {
+               SDNCController sc = new SDNCController();
+               sc.setSdncId("sdncId");
+               sc.setLocation("location");
+               List sdncList=new ArrayList<SDNCController>();
+               sdncList.add(sc);
                SDNCControllerRsp scr = new SDNCControllerRsp();
-               scr.setEsrThirdpartySdncList(null);
-               scr.getEsrThirdpartySdncList();
+               scr.setEsrThirdpartySdncList(sdncList);
+               assertNotNull(scr.getEsrThirdpartySdncList());
        }
 }