diff options
-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()); } } |