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;
20 import org.junit.Test;
22 public class VnfmRegisterInfoTest {
25 public void getterAndSetter4vnfmId(){
26 final String vnfmId = "dafadf";
27 VnfmRegisterInfo vnfmRegisterInfo = new VnfmRegisterInfo();
28 vnfmRegisterInfo.setVnfmId(vnfmId);
29 assertEquals(vnfmRegisterInfo.getVnfmId(), vnfmId);
33 public void getterAndSetter4name(){
34 final String name = "name-test";
35 VnfmRegisterInfo vnfmRegisterInfo = new VnfmRegisterInfo();
36 vnfmRegisterInfo.setName(name);
37 assertEquals(vnfmRegisterInfo.getName(), name);
41 public void getterAndSetter4type(){
42 final String type = "vnfm-type";
43 VnfmRegisterInfo vnfmRegisterInfo = new VnfmRegisterInfo();
44 vnfmRegisterInfo.setType(type);
45 assertEquals(vnfmRegisterInfo.getType(), type);
49 public void getterAndSetter4vimId(){
50 final String vimId = "dafadf";
51 VnfmRegisterInfo vnfmRegisterInfo = new VnfmRegisterInfo();
52 vnfmRegisterInfo.setVimId(vimId);
53 assertEquals(vnfmRegisterInfo.getVimId(), vimId);
57 public void getterAndSetter4vendor(){
58 final String vendor = "zte";
59 VnfmRegisterInfo vnfmRegisterInfo = new VnfmRegisterInfo();
60 vnfmRegisterInfo.setVendor(vendor);
61 assertEquals(vnfmRegisterInfo.getVendor(), vendor);
65 public void getterAndSetter4version(){
66 final String version = "v1.0";
67 VnfmRegisterInfo vnfmRegisterInfo = new VnfmRegisterInfo();
68 vnfmRegisterInfo.setVersion(version);
69 assertEquals(vnfmRegisterInfo.getVersion(), version);
73 public void getterAndSetter4certificateUrl(){
74 final String certificateUrl = "/test";
75 VnfmRegisterInfo vnfmRegisterInfo = new VnfmRegisterInfo();
76 vnfmRegisterInfo.setCertificateUrl(certificateUrl);
77 assertEquals(vnfmRegisterInfo.getCertificateUrl(), certificateUrl);
81 public void getterAndSetter4url(){
82 final String url = "/home";
83 VnfmRegisterInfo vnfmRegisterInfo = new VnfmRegisterInfo();
84 vnfmRegisterInfo.setUrl(url);
85 assertEquals(vnfmRegisterInfo.getUrl(), url);
89 public void getterAndSetter4userName(){
90 final String userName = "li";
91 VnfmRegisterInfo vnfmRegisterInfo = new VnfmRegisterInfo();
92 vnfmRegisterInfo.setUserName(userName);
93 assertEquals(vnfmRegisterInfo.getUserName(), userName);
97 public void getterAndSetter4password(){
98 final String password = "dfaaf";
99 VnfmRegisterInfo vnfmRegisterInfo = new VnfmRegisterInfo();
100 vnfmRegisterInfo.setPassword(password);
101 assertEquals(vnfmRegisterInfo.getPassword(), password);