2 * Copyright 2018 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.aai;
18 import static org.junit.Assert.assertEquals;
19 import org.junit.Test;
21 public class PnfTest {
24 public void getterAndSetter4pnfName() {
25 final String pnfName = "pnf1";
27 pnf.setPnfName(pnfName);
28 assertEquals(pnf.getPnfName(), pnfName);
32 public void getterAndSetter4pnfName2() {
33 final String pnfName2 = "pnf2";
35 pnf.setPnfName2(pnfName2);
36 assertEquals(pnf.getPnfName2(), pnfName2);
40 public void getterAndSetter4pnfId() {
41 final String pnfId = "123";
44 assertEquals(pnf.getPnfId(), pnfId);
48 public void getterAndSetter4equipType() {
49 final String equipType = "pnf1";
51 pnf.setEquipType(equipType);
52 assertEquals(pnf.getEquipType(), equipType);
56 public void getterAndSetter4equipVendor() {
57 final String equipVendor = "ZTE";
59 pnf.setEquipVendor(equipVendor);
60 assertEquals(pnf.getEquipVendor(), equipVendor);
64 public void getterAndSetter4equipModel() {
65 final String equipModel = "pnfdId1";
67 pnf.setEquipModel(equipModel);
68 assertEquals(pnf.getEquipModel(), equipModel);
72 public void getterAndSetter4managementOption() {
73 final String managementOption = "emsId1";
75 pnf.setManagementOption(managementOption);
76 assertEquals(pnf.getManagementOption(), managementOption);
80 public void getterAndSetter4inMaint() {
81 final boolean inMaint = false;
83 pnf.setInMaint(inMaint);
84 assertEquals(pnf.isInMaint(), inMaint);
88 public void getterAndSetter4frameId() {
89 final String frameId = "123.14-41.25";
91 pnf.setFrameId(frameId);
92 assertEquals(pnf.getFrameId(), frameId);
96 public void getterAndSetter4resourceVersion() {
97 final String resourceVersion = "1234";
99 pnf.setResourceVersion(resourceVersion);
100 assertEquals(pnf.getResourceVersion(), resourceVersion);