diff options
author | ezhil <ezhrajam@in.ibm.com> | 2020-05-13 19:36:09 +0530 |
---|---|---|
committer | ezhil <ezhrajam@in.ibm.com> | 2020-05-13 19:37:59 +0530 |
commit | e7ddd5be508b7c5e5b50ae22c242875df514254b (patch) | |
tree | 5c8e9cf289fd5454b8fa98e21dfb11a5cc54d8c4 | |
parent | 6226caf98a481b7a4e51ba066b96ed81b96dd071 (diff) |
Junit testcase for SDNCCOntrollerRsp
Issue-ID: USECASEUI-439
Change-Id: I935de837e75b6ddcd952a9ae8f4f432655c0bec2
Signed-off-by: ezhil <ezhrajam@in.ibm.com>
-rw-r--r-- | server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/SDNCControllerRspTest.java | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/SDNCControllerRspTest.java b/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/SDNCControllerRspTest.java index 9495b6a7..2e4fde3f 100644 --- a/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/SDNCControllerRspTest.java +++ b/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/SDNCControllerRspTest.java @@ -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()); } } |