Merge "Reorder modifiers"
[so.git] / adapters / mso-adapters-rest-interface / src / test / java / org / openecomp / mso / openstack / beans / NetworkInfoTest.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 com.woorea.openstack.quantum.model.Network;
23 import org.junit.Test;
24
25 import java.util.Arrays;
26
27 public class NetworkInfoTest {
28
29     NetworkInfo networkInfo = new NetworkInfo(new Network());
30
31     @Test
32     public void getName() throws Exception {
33         networkInfo.getName();
34     }
35
36     @Test
37     public void setName() throws Exception {
38         networkInfo.setName("test");
39     }
40
41     @Test
42     public void getId() throws Exception {
43         networkInfo.getId();
44     }
45
46     @Test
47     public void setId() throws Exception {
48         networkInfo.setId("test");
49     }
50
51     @Test
52     public void getStatus() throws Exception {
53         networkInfo.getStatus();
54     }
55
56     @Test
57     public void setStatus() throws Exception {
58         networkInfo.setStatus(null);
59     }
60
61     @Test
62     public void getProvider() throws Exception {
63         networkInfo.getProvider();
64     }
65
66     @Test
67     public void setProvider() throws Exception {
68         networkInfo.setProvider("provider");
69     }
70
71     @Test
72     public void getVlans() throws Exception {
73         networkInfo.getVlans();
74     }
75
76     @Test
77     public void setVlans() throws Exception {
78         networkInfo.setVlans(Arrays.asList(10, 20, 30));
79     }
80
81     @Test
82     public void getSubnets() throws Exception {
83         networkInfo.getSubnets();
84     }
85
86 }