2 * Copyright 2017 ZTE Corporation.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package org.onap.aai.esr.entity.aai;
18 import static org.junit.Assert.assertEquals;
20 import java.util.ArrayList;
21 import java.util.List;
23 import org.junit.Test;
25 public class EsrThirdpartySdncDetailTest {
27 public void getterAndSetter4thirdpartySdncId(){
28 final String thirdpartySdncId = "thirdpartySdncId-test";
29 EsrThirdpartySdncDetail esrThirdpartySdncDetail = new EsrThirdpartySdncDetail();
30 esrThirdpartySdncDetail.setThirdpartySdncId(thirdpartySdncId);
31 assertEquals(esrThirdpartySdncDetail.getThirdpartySdncId(), thirdpartySdncId);
35 public void getterAndSetter4resourceVersion(){
36 final String resourceVersion = "resourceVersion-test";
37 EsrThirdpartySdncDetail esrThirdpartySdncDetail = new EsrThirdpartySdncDetail();
38 esrThirdpartySdncDetail.setResourceVersion(resourceVersion);
39 assertEquals(esrThirdpartySdncDetail.getResourceVersion(), resourceVersion);
43 public void getterAndSetter4location(){
44 final String location = "location-test";
45 EsrThirdpartySdncDetail esrThirdpartySdncDetail = new EsrThirdpartySdncDetail();
46 esrThirdpartySdncDetail.setLocation(location);
47 assertEquals(esrThirdpartySdncDetail.getLocation(), location);
51 public void getterAndSetter4productName(){
52 final String productName = "productName-test";
53 EsrThirdpartySdncDetail esrThirdpartySdncDetail = new EsrThirdpartySdncDetail();
54 esrThirdpartySdncDetail.setProductName(productName);
55 assertEquals(esrThirdpartySdncDetail.getProductName(), productName);
59 public void getterAndSetter4esrSystemInfoList(){
60 final EsrSystemInfoList esrSystemInfoList = new EsrSystemInfoList();
61 List<EsrSystemInfo> esrSystemInfo = new ArrayList<>();
62 EsrSystemInfo esrSystemInfoObj = new EsrSystemInfo();
63 esrSystemInfoObj.setEsrSystemInfoId("123");
64 esrSystemInfo.add(esrSystemInfoObj );
65 esrSystemInfoList.setEsrSystemInfo(esrSystemInfo);
66 EsrThirdpartySdncDetail esrThirdpartySdncDetail = new EsrThirdpartySdncDetail();
67 esrThirdpartySdncDetail.setEsrSystemInfoList(esrSystemInfoList);
68 assertEquals(esrThirdpartySdncDetail.getEsrSystemInfoList(), esrSystemInfoList);