2 * Copyright 2017 ZTE Corporation.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package org.onap.aai.esr.entity.rest;
18 import static org.junit.Assert.assertEquals;
19 import org.junit.Test;
21 public class VnfmRegisterInfoTest {
24 public void getterAndSetter4vnfmId() {
25 final String vnfmId = "dafadf";
26 VnfmRegisterInfo vnfmRegisterInfo = new VnfmRegisterInfo();
27 vnfmRegisterInfo.setVnfmId(vnfmId);
28 assertEquals(vnfmRegisterInfo.getVnfmId(), vnfmId);
32 public void getterAndSetter4name() {
33 final String name = "name-test";
34 VnfmRegisterInfo vnfmRegisterInfo = new VnfmRegisterInfo();
35 vnfmRegisterInfo.setName(name);
36 assertEquals(vnfmRegisterInfo.getName(), name);
40 public void getterAndSetter4type() {
41 final String type = "vnfm-type";
42 VnfmRegisterInfo vnfmRegisterInfo = new VnfmRegisterInfo();
43 vnfmRegisterInfo.setType(type);
44 assertEquals(vnfmRegisterInfo.getType(), type);
48 public void getterAndSetter4vimId() {
49 final String vimId = "dafadf";
50 VnfmRegisterInfo vnfmRegisterInfo = new VnfmRegisterInfo();
51 vnfmRegisterInfo.setVimId(vimId);
52 assertEquals(vnfmRegisterInfo.getVimId(), vimId);
56 public void getterAndSetter4vendor() {
57 final String vendor = "zte";
58 VnfmRegisterInfo vnfmRegisterInfo = new VnfmRegisterInfo();
59 vnfmRegisterInfo.setVendor(vendor);
60 assertEquals(vnfmRegisterInfo.getVendor(), vendor);
64 public void getterAndSetter4version() {
65 final String version = "v1.0";
66 VnfmRegisterInfo vnfmRegisterInfo = new VnfmRegisterInfo();
67 vnfmRegisterInfo.setVersion(version);
68 assertEquals(vnfmRegisterInfo.getVersion(), version);
72 public void getterAndSetter4certificateUrl() {
73 final String certificateUrl = "/test";
74 VnfmRegisterInfo vnfmRegisterInfo = new VnfmRegisterInfo();
75 vnfmRegisterInfo.setCertificateUrl(certificateUrl);
76 assertEquals(vnfmRegisterInfo.getCertificateUrl(), certificateUrl);
80 public void getterAndSetter4url() {
81 final String url = "/home";
82 VnfmRegisterInfo vnfmRegisterInfo = new VnfmRegisterInfo();
83 vnfmRegisterInfo.setUrl(url);
84 assertEquals(vnfmRegisterInfo.getUrl(), url);
88 public void getterAndSetter4userName() {
89 final String userName = "li";
90 VnfmRegisterInfo vnfmRegisterInfo = new VnfmRegisterInfo();
91 vnfmRegisterInfo.setUserName(userName);
92 assertEquals(vnfmRegisterInfo.getUserName(), userName);
96 public void getterAndSetter4password() {
97 final String password = "dfaaf";
98 VnfmRegisterInfo vnfmRegisterInfo = new VnfmRegisterInfo();
99 vnfmRegisterInfo.setPassword(password);
100 assertEquals(vnfmRegisterInfo.getPassword(), password);