2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
20 package org.openecomp.mso.openstack.beans;
22 import org.junit.Test;
23 import org.openecomp.mso.entity.MsoRequest;
25 import java.util.Arrays;
27 public class NetworkRollbackTest {
29 NetworkRollback networkRollback = new NetworkRollback();
32 public void getNetworkId() throws Exception {
33 networkRollback.getNetworkId();
37 public void setNetworkId() throws Exception {
38 networkRollback.setNetworkId("255.255.255.0");
42 public void getNeutronNetworkId() throws Exception {
43 networkRollback.getNeutronNetworkId();
47 public void setNeutronNetworkId() throws Exception {
48 networkRollback.setNeutronNetworkId("192.168.0.0");
52 public void getNetworkStackId() throws Exception {
53 networkRollback.getNetworkStackId();
57 public void setNetworkStackId() throws Exception {
58 networkRollback.setNetworkStackId("id-123");
62 public void getTenantId() throws Exception {
63 networkRollback.getTenantId();
67 public void setTenantId() throws Exception {
68 networkRollback.setTenantId("id-123");
72 public void getCloudId() throws Exception {
73 networkRollback.getCloudId();
77 public void setCloudId() throws Exception {
78 networkRollback.setCloudId("id-123");
82 public void getNetworkType() throws Exception {
83 networkRollback.getNetworkType();
87 public void setNetworkType() throws Exception {
88 networkRollback.setNetworkType("type");
92 public void getModelCustomizationUuid() throws Exception {
93 networkRollback.getModelCustomizationUuid();
97 public void setModelCustomizationUuid() throws Exception {
98 networkRollback.setModelCustomizationUuid("id-123");
102 public void getNetworkCreated() throws Exception {
103 networkRollback.getNetworkCreated();
107 public void setNetworkCreated() throws Exception {
108 networkRollback.setNetworkCreated(true);
112 public void getNetworkName() throws Exception {
113 networkRollback.getNetworkName();
117 public void setNetworkName() throws Exception {
118 networkRollback.setNetworkName("test");
122 public void getPhysicalNetwork() throws Exception {
123 networkRollback.getPhysicalNetwork();
127 public void setPhysicalNetwork() throws Exception {
128 networkRollback.setPhysicalNetwork("test");
132 public void getVlans() throws Exception {
133 networkRollback.getVlans();
137 public void setVlans() throws Exception {
138 networkRollback.setVlans(Arrays.asList(10, 20));
142 public void getMsoRequest() throws Exception {
143 networkRollback.getMsoRequest();
147 public void setMsoRequest() throws Exception {
148 networkRollback.setMsoRequest(new MsoRequest());