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.rest;
18 import static org.junit.Assert.assertEquals;
20 import org.junit.Test;
22 public class ThirdpartySdncRegisterInfoTest {
24 public void getterAndSetter4cloudDomain(){
25 final String thirdpartySdncId = "312erqdfa";
26 ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo();
27 thirdpartySdncRegisterInfo.setThirdpartySdncId(thirdpartySdncId);
28 assertEquals(thirdpartySdncRegisterInfo.getThirdpartySdncId(), thirdpartySdncId);
32 public void getterAndSetter4name(){
33 final String name = "sdnc-test";
34 ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo();
35 thirdpartySdncRegisterInfo.setName(name);
36 assertEquals(thirdpartySdncRegisterInfo.getName(), name);
40 public void getterAndSetter4vendor(){
41 final String vendor = "zte";
42 ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo();
43 thirdpartySdncRegisterInfo.setVendor(vendor);
44 assertEquals(thirdpartySdncRegisterInfo.getVendor(), vendor);
48 public void getterAndSetter4version(){
49 final String version = "v1.0";
50 ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo();
51 thirdpartySdncRegisterInfo.setVersion(version);
52 assertEquals(thirdpartySdncRegisterInfo.getVersion(), version);
56 public void getterAndSetter4type(){
57 final String type = "type-test";
58 ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo();
59 thirdpartySdncRegisterInfo.setType(type);
60 assertEquals(thirdpartySdncRegisterInfo.getType(), type);
64 public void getterAndSetter4location(){
65 final String location = "312erqdfa";
66 ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo();
67 thirdpartySdncRegisterInfo.setLocation(location);
68 assertEquals(thirdpartySdncRegisterInfo.getLocation(), location);
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);
80 public void getterAndSetter4userName(){
81 final String userName = "root";
82 ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo();
83 thirdpartySdncRegisterInfo.setUserName(userName);
84 assertEquals(thirdpartySdncRegisterInfo.getUserName(), userName);
88 public void getterAndSetter4password(){
89 final String password = "root";
90 ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo();
91 thirdpartySdncRegisterInfo.setPassword(password);
92 assertEquals(thirdpartySdncRegisterInfo.getPassword(), password);
96 public void getterAndSetter4productName(){
97 final String productName = "sdnctest";
98 ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo();
99 thirdpartySdncRegisterInfo.setProductName(productName);
100 assertEquals(thirdpartySdncRegisterInfo.getProductName(), productName);
104 public void getterAndSetter4protocol(){
105 final String protocol = "root";
106 ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo();
107 thirdpartySdncRegisterInfo.setProtocol(protocol);
108 assertEquals(thirdpartySdncRegisterInfo.getProtocol(), protocol);