Merge "Reorder modifiers"
[so.git] / adapters / mso-adapters-rest-interface / src / test / java / org / openecomp / mso / openstack / beans / NetworkRollbackTest.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 import org.openecomp.mso.entity.MsoRequest;
24
25 import java.util.Arrays;
26
27 public class NetworkRollbackTest {
28
29     NetworkRollback networkRollback = new NetworkRollback();
30
31     @Test
32     public void getNetworkId() throws Exception {
33         networkRollback.getNetworkId();
34     }
35
36     @Test
37     public void setNetworkId() throws Exception {
38         networkRollback.setNetworkId("255.255.255.0");
39     }
40
41     @Test
42     public void getNeutronNetworkId() throws Exception {
43         networkRollback.getNeutronNetworkId();
44     }
45
46     @Test
47     public void setNeutronNetworkId() throws Exception {
48         networkRollback.setNeutronNetworkId("192.168.0.0");
49     }
50
51     @Test
52     public void getNetworkStackId() throws Exception {
53         networkRollback.getNetworkStackId();
54     }
55
56     @Test
57     public void setNetworkStackId() throws Exception {
58         networkRollback.setNetworkStackId("id-123");
59     }
60
61     @Test
62     public void getTenantId() throws Exception {
63         networkRollback.getTenantId();
64     }
65
66     @Test
67     public void setTenantId() throws Exception {
68         networkRollback.setTenantId("id-123");
69     }
70
71     @Test
72     public void getCloudId() throws Exception {
73         networkRollback.getCloudId();
74     }
75
76     @Test
77     public void setCloudId() throws Exception {
78         networkRollback.setCloudId("id-123");
79     }
80
81     @Test
82     public void getNetworkType() throws Exception {
83         networkRollback.getNetworkType();
84     }
85
86     @Test
87     public void setNetworkType() throws Exception {
88         networkRollback.setNetworkType("type");
89     }
90
91     @Test
92     public void getModelCustomizationUuid() throws Exception {
93         networkRollback.getModelCustomizationUuid();
94     }
95
96     @Test
97     public void setModelCustomizationUuid() throws Exception {
98         networkRollback.setModelCustomizationUuid("id-123");
99     }
100
101     @Test
102     public void getNetworkCreated() throws Exception {
103         networkRollback.getNetworkCreated();
104     }
105
106     @Test
107     public void setNetworkCreated() throws Exception {
108         networkRollback.setNetworkCreated(true);
109     }
110
111     @Test
112     public void getNetworkName() throws Exception {
113         networkRollback.getNetworkName();
114     }
115
116     @Test
117     public void setNetworkName() throws Exception {
118         networkRollback.setNetworkName("test");
119     }
120
121     @Test
122     public void getPhysicalNetwork() throws Exception {
123         networkRollback.getPhysicalNetwork();
124     }
125
126     @Test
127     public void setPhysicalNetwork() throws Exception {
128         networkRollback.setPhysicalNetwork("test");
129     }
130
131     @Test
132     public void getVlans() throws Exception {
133         networkRollback.getVlans();
134     }
135
136     @Test
137     public void setVlans() throws Exception {
138         networkRollback.setVlans(Arrays.asList(10, 20));
139     }
140
141     @Test
142     public void getMsoRequest() throws Exception {
143         networkRollback.getMsoRequest();
144     }
145
146     @Test
147     public void setMsoRequest() throws Exception {
148         networkRollback.setMsoRequest(new MsoRequest());
149     }
150
151 }