From 889dac190799bfbed83823f23b5ace02f670b81f Mon Sep 17 00:00:00 2001 From: ezhil Date: Wed, 13 May 2020 19:09:22 +0530 Subject: Junit testcase for AAICustomerRsp Issue-ID: USECASEUI-439 Change-Id: I7b51bb4c4e6329493c7cb929798a3ed74e94ea6a Signed-off-by: ezhil --- .../service/lcm/domain/aai/bean/AAICustomerRspTest.java | 12 ++++++++++-- 1 file 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(); + acList.add(ac); AAICustomerRsp acr = new AAICustomerRsp(); - acr.setCustomer(null); - acr.getCustomer(); + acr.setCustomer(acList); + assertNotNull(acr.getCustomer()); } } -- cgit 1.2.3-korg