7985d55750cebf7cf97836ff710b72a28b2ae3cb
[aai/esr-server.git] / esr-mgr / src / test / java / org / onap / aai / esr / entity / aai / EsrThirdpartySdncDetailTest.java
1 /**
2  * Copyright 2017 ZTE Corporation.
3  *
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
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16 package org.onap.aai.esr.entity.aai;
17
18 import static org.junit.Assert.assertEquals;
19
20 import java.util.ArrayList;
21 import java.util.List;
22
23 import org.junit.Test;
24
25 public class EsrThirdpartySdncDetailTest {
26   @Test
27   public void getterAndSetter4thirdpartySdncId(){
28       final String thirdpartySdncId = "thirdpartySdncId-test";
29       EsrThirdpartySdncDetail esrThirdpartySdncDetail = new EsrThirdpartySdncDetail();
30       esrThirdpartySdncDetail.setThirdpartySdncId(thirdpartySdncId);
31       assertEquals(esrThirdpartySdncDetail.getThirdpartySdncId(), thirdpartySdncId);
32   }
33   
34   @Test
35   public void getterAndSetter4resourceVersion(){
36       final String resourceVersion = "resourceVersion-test";
37       EsrThirdpartySdncDetail esrThirdpartySdncDetail = new EsrThirdpartySdncDetail();
38       esrThirdpartySdncDetail.setResourceVersion(resourceVersion);
39       assertEquals(esrThirdpartySdncDetail.getResourceVersion(), resourceVersion);
40   }
41   
42   @Test
43   public void getterAndSetter4location(){
44       final String location = "location-test";
45       EsrThirdpartySdncDetail esrThirdpartySdncDetail = new EsrThirdpartySdncDetail();
46       esrThirdpartySdncDetail.setLocation(location);
47       assertEquals(esrThirdpartySdncDetail.getLocation(), location);
48   }
49   
50   @Test
51   public void getterAndSetter4productName(){
52       final String productName = "productName-test";
53       EsrThirdpartySdncDetail esrThirdpartySdncDetail = new EsrThirdpartySdncDetail();
54       esrThirdpartySdncDetail.setProductName(productName);
55       assertEquals(esrThirdpartySdncDetail.getProductName(), productName);
56   }
57   
58   @Test
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);
69   }
70 }