aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorezhil <ezhrajam@in.ibm.com>2020-05-13 19:09:22 +0530
committerezhil <ezhrajam@in.ibm.com>2020-05-13 19:10:37 +0530
commit889dac190799bfbed83823f23b5ace02f670b81f (patch)
treea8899914d0deec30ce39160651a6b02ec52b0f3f
parent6226caf98a481b7a4e51ba066b96ed81b96dd071 (diff)
Junit testcase for AAICustomerRsp
Issue-ID: USECASEUI-439 Change-Id: I7b51bb4c4e6329493c7cb929798a3ed74e94ea6a Signed-off-by: ezhil <ezhrajam@in.ibm.com>
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/AAICustomerRspTest.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/AAICustomerRspTest.java b/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/AAICustomerRspTest.java
index f0ccfdf1..8562f637 100644
--- a/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/AAICustomerRspTest.java
+++ b/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/AAICustomerRspTest.java
@@ -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());
}
}