diff options
author | xu ran <xuranyjy@chinamobile.com> | 2020-05-14 03:09:56 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-05-14 03:09:56 +0000 |
commit | 8621d4b88954ac176d96853303e12ecc33d60581 (patch) | |
tree | 93d8337434c62e8a3b88a9670f3f2ea7ca1ffb69 | |
parent | 786e1cc12b40710e47f5f9dcddd922e899d6e331 (diff) | |
parent | e7ddd5be508b7c5e5b50ae22c242875df514254b (diff) |
Merge "Junit testcase for SDNCCOntrollerRsp"
-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()); } } |