86524c5fb9d7767036815ad121b91aef805d7efb
[aai/esr-server.git] / esr-mgr / src / test / java / org / onap / aai / esr / entity / rest / ThirdpartySdncRegisterInfoTest.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.rest;
17
18 import static org.junit.Assert.assertEquals;
19
20 import org.junit.Test;
21
22 public class ThirdpartySdncRegisterInfoTest {
23   @Test
24   public void getterAndSetter4cloudDomain(){
25       final String thirdpartySdncId = "312erqdfa";
26       ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo();
27       thirdpartySdncRegisterInfo.setThirdpartySdncId(thirdpartySdncId);
28       assertEquals(thirdpartySdncRegisterInfo.getThirdpartySdncId(), thirdpartySdncId);
29   }
30   
31   @Test
32   public void getterAndSetter4name(){
33       final String name = "sdnc-test";
34       ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo();
35       thirdpartySdncRegisterInfo.setName(name);
36       assertEquals(thirdpartySdncRegisterInfo.getName(), name);
37   }
38   
39   @Test
40   public void getterAndSetter4vendor(){
41       final String vendor = "zte";
42       ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo();
43       thirdpartySdncRegisterInfo.setVendor(vendor);
44       assertEquals(thirdpartySdncRegisterInfo.getVendor(), vendor);
45   }
46   
47   @Test
48   public void getterAndSetter4version(){
49       final String version = "v1.0";
50       ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo();
51       thirdpartySdncRegisterInfo.setVersion(version);
52       assertEquals(thirdpartySdncRegisterInfo.getVersion(), version);
53   }
54   
55   @Test
56   public void getterAndSetter4type(){
57       final String type = "type-test";
58       ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo();
59       thirdpartySdncRegisterInfo.setType(type);
60       assertEquals(thirdpartySdncRegisterInfo.getType(), type);
61   }
62   
63   @Test
64   public void getterAndSetter4location(){
65       final String location = "312erqdfa";
66       ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo();
67       thirdpartySdncRegisterInfo.setLocation(location);
68       assertEquals(thirdpartySdncRegisterInfo.getLocation(), location);
69   }
70   
71   @Test
72   public void getterAndSetter4url(){
73       final String url = "http://13.44.22.11:5000";
74       ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo();
75       thirdpartySdncRegisterInfo.setUrl(url);
76       assertEquals(thirdpartySdncRegisterInfo.getUrl(), url);
77   }
78   
79   @Test
80   public void getterAndSetter4userName(){
81       final String userName = "root";
82       ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo();
83       thirdpartySdncRegisterInfo.setUserName(userName);
84       assertEquals(thirdpartySdncRegisterInfo.getUserName(), userName);
85   }
86   
87   @Test
88   public void getterAndSetter4password(){
89       final String password = "root";
90       ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo();
91       thirdpartySdncRegisterInfo.setPassword(password);
92       assertEquals(thirdpartySdncRegisterInfo.getPassword(), password);
93   }
94   
95   @Test
96   public void getterAndSetter4productName(){
97       final String productName = "sdnctest";
98       ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo();
99       thirdpartySdncRegisterInfo.setProductName(productName);
100       assertEquals(thirdpartySdncRegisterInfo.getProductName(), productName);
101   }
102   
103   @Test
104   public void getterAndSetter4protocol(){
105       final String protocol = "root";
106       ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo();
107       thirdpartySdncRegisterInfo.setProtocol(protocol);
108       assertEquals(thirdpartySdncRegisterInfo.getProtocol(), protocol);
109   }
110 }