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;
19 import org.junit.Test;
21 public class ThirdpartySdncRegisterInfoTest {
23 public void getterAndSetter4cloudDomain() {
24 final String thirdpartySdncId = "312erqdfa";
25 ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo();
26 thirdpartySdncRegisterInfo.setThirdpartySdncId(thirdpartySdncId);
27 assertEquals(thirdpartySdncRegisterInfo.getThirdpartySdncId(), thirdpartySdncId);
31 public void getterAndSetter4name() {
32 final String name = "sdnc-test";
33 ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo();
34 thirdpartySdncRegisterInfo.setName(name);
35 assertEquals(thirdpartySdncRegisterInfo.getName(), name);
39 public void getterAndSetter4vendor() {
40 final String vendor = "zte";
41 ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo();
42 thirdpartySdncRegisterInfo.setVendor(vendor);
43 assertEquals(thirdpartySdncRegisterInfo.getVendor(), vendor);
47 public void getterAndSetter4version() {
48 final String version = "v1.0";
49 ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo();
50 thirdpartySdncRegisterInfo.setVersion(version);
51 assertEquals(thirdpartySdncRegisterInfo.getVersion(), version);
55 public void getterAndSetter4type() {
56 final String type = "type-test";
57 ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo();
58 thirdpartySdncRegisterInfo.setType(type);
59 assertEquals(thirdpartySdncRegisterInfo.getType(), type);
63 public void getterAndSetter4location() {
64 final String location = "312erqdfa";
65 ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo();
66 thirdpartySdncRegisterInfo.setLocation(location);
67 assertEquals(thirdpartySdncRegisterInfo.getLocation(), location);
71 public void getterAndSetter4url() {
72 final String url = "http://13.44.22.11:5000";
73 ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo();
74 thirdpartySdncRegisterInfo.setUrl(url);
75 assertEquals(thirdpartySdncRegisterInfo.getUrl(), url);
79 public void getterAndSetter4userName() {
80 final String userName = "root";
81 ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo();
82 thirdpartySdncRegisterInfo.setUserName(userName);
83 assertEquals(thirdpartySdncRegisterInfo.getUserName(), userName);
87 public void getterAndSetter4password() {
88 final String password = "root";
89 ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo();
90 thirdpartySdncRegisterInfo.setPassword(password);
91 assertEquals(thirdpartySdncRegisterInfo.getPassword(), password);
95 public void getterAndSetter4productName() {
96 final String productName = "sdnctest";
97 ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo();
98 thirdpartySdncRegisterInfo.setProductName(productName);
99 assertEquals(thirdpartySdncRegisterInfo.getProductName(), productName);
103 public void getterAndSetter4protocol() {
104 final String protocol = "root";
105 ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo();
106 thirdpartySdncRegisterInfo.setProtocol(protocol);
107 assertEquals(thirdpartySdncRegisterInfo.getProtocol(), protocol);