Junit testcase for AAICustomerRsp 23/107623/1
authorezhil <ezhrajam@in.ibm.com>
Wed, 13 May 2020 13:39:22 +0000 (19:09 +0530)
committerezhil <ezhrajam@in.ibm.com>
Wed, 13 May 2020 13:40:37 +0000 (19:10 +0530)
Issue-ID: USECASEUI-439
Change-Id: I7b51bb4c4e6329493c7cb929798a3ed74e94ea6a
Signed-off-by: ezhil <ezhrajam@in.ibm.com>
server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/AAICustomerRspTest.java

index f0ccfdf..8562f63 100644 (file)
@@ -1,6 +1,9 @@
 /**
  * Copyright (C) 2017 CMCC, Inc. and others. All rights reserved.
  *
+ * ================================================================================
+ * Modifications Copyright (C) 2020 IBM.
+ * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
@@ -40,6 +43,8 @@ import org.hibernate.Transaction;
 import mockit.Mock;
 import mockit.MockUp;
 
+import static org.junit.Assert.assertNotNull;
+
 public class AAICustomerRspTest {
 
        @Before
@@ -52,8 +57,11 @@ public class AAICustomerRspTest {
 
        @Test
        public void testAAICustomerRsp() throws Exception {
+               AAICustomer ac = new AAICustomer("globalCustomerId", "subscriberName", "subscriberType","resourceVersion");
+               List acList=new ArrayList<AAICustomer>();
+               acList.add(ac);
                AAICustomerRsp acr = new AAICustomerRsp();
-               acr.setCustomer(null);
-               acr.getCustomer();
+               acr.setCustomer(acList);
+               assertNotNull(acr.getCustomer());
        }
 }