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