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 com.woorea.openstack.quantum.model.Network;
23 import org.junit.Test;
25 import java.util.Arrays;
27 public class NetworkInfoTest {
29 NetworkInfo networkInfo = new NetworkInfo(new Network());
32 public void getName() throws Exception {
33 networkInfo.getName();
37 public void setName() throws Exception {
38 networkInfo.setName("test");
42 public void getId() throws Exception {
47 public void setId() throws Exception {
48 networkInfo.setId("test");
52 public void getStatus() throws Exception {
53 networkInfo.getStatus();
57 public void setStatus() throws Exception {
58 networkInfo.setStatus(null);
62 public void getProvider() throws Exception {
63 networkInfo.getProvider();
67 public void setProvider() throws Exception {
68 networkInfo.setProvider("provider");
72 public void getVlans() throws Exception {
73 networkInfo.getVlans();
77 public void setVlans() throws Exception {
78 networkInfo.setVlans(Arrays.asList(10, 20, 30));
82 public void getSubnets() throws Exception {
83 networkInfo.getSubnets();