Merge "Reorder modifiers"
[so.git] / adapters / mso-adapters-rest-interface / src / test / java / org / openecomp / mso / openstack / beans / SubnetTest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2018 Huawei Technologies Co., Ltd. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20 package org.openecomp.mso.openstack.beans;
21
22 import org.junit.Test;
23
24 import java.util.Arrays;
25 import java.util.Collections;
26
27 public class SubnetTest {
28
29     Subnet subnet = new Subnet();
30
31     @Test
32     public void getSubnetName() throws Exception {
33         subnet.getSubnetName();
34     }
35
36     @Test
37     public void setSubnetName() throws Exception {
38         subnet.setSubnetName("test");
39     }
40
41     @Test
42     public void getAllocationPools() throws Exception {
43         subnet.getAllocationPools();
44     }
45
46     @Test
47     public void getCidr() throws Exception {
48         subnet.getCidr();
49     }
50
51     @Test
52     public void getDnsNameServers() throws Exception {
53         subnet.getDnsNameServers();
54     }
55
56     @Test
57     public void getEnableDHCP() throws Exception {
58         subnet.getEnableDHCP();
59     }
60
61     @Test
62     public void getAddrFromStart() throws Exception {
63         subnet.getAddrFromStart();
64     }
65
66     @Test
67     public void setAddrFromStart() throws Exception {
68         subnet.setAddrFromStart(true);
69     }
70
71     @Test
72     public void getGatewayIp() throws Exception {
73         subnet.getGatewayIp();
74     }
75
76     @Test
77     public void getHostRoutes() throws Exception {
78         subnet.getHostRoutes();
79     }
80
81     @Test
82     public void getNeutronId() throws Exception {
83         subnet.getNeutronId();
84     }
85
86     @Test
87     public void getIpVersion() throws Exception {
88         subnet.getIpVersion();
89     }
90
91     @Test
92     public void getSubnetId() throws Exception {
93         subnet.getSubnetId();
94     }
95
96     @Test
97     public void setAllocationPools() throws Exception {
98         subnet.setAllocationPools(Arrays.asList());
99     }
100
101     @Test
102     public void setCidr() throws Exception {
103         subnet.setCidr("255.255.255.0");
104     }
105
106     @Test
107     public void setDnsNameServers() throws Exception {
108         subnet.setDnsNameServers(Arrays.asList());
109     }
110
111     @Test
112     public void setEnableDHCP() throws Exception {
113         subnet.setEnableDHCP(true);
114     }
115
116     @Test
117     public void setGatewayIp() throws Exception {
118         subnet.setGatewayIp("192.168.0.1");
119     }
120
121     @Test
122     public void setHostRoutes() throws Exception {
123         subnet.setHostRoutes(Collections.emptyList());
124     }
125
126     @Test
127     public void setNeutronId() throws Exception {
128         subnet.setNeutronId("test");
129     }
130
131     @Test
132     public void setIpVersion() throws Exception {
133         subnet.setIpVersion("ipv4");
134     }
135
136     @Test
137     public void setSubnetId() throws Exception {
138         subnet.setSubnetId("1.0.0.0");
139     }
140
141 }