diff options
author | xu ran <xuranyjy@chinamobile.com> | 2020-05-14 03:08:34 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-05-14 03:08:34 +0000 |
commit | 90652c6c1962d7925cc4c14818917afbe359fe96 (patch) | |
tree | f850a22530af9992d70a0bc4d2f279a45fbb0734 | |
parent | dadbc4abbdc829c88bba6f905b3cf46d31ae028c (diff) | |
parent | 889dac190799bfbed83823f23b5ace02f670b81f (diff) |
Merge "Junit testcase for AAICustomerRsp"
-rw-r--r-- | server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/AAICustomerRspTest.java | 12 |
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()); } } |