X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=esr-mgr%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Faai%2Fesr%2Fentity%2Faai%2FEsrVnfmTest.java;fp=esr-mgr%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Faai%2Fesr%2Fentity%2Faai%2FEsrVnfmTest.java;h=efdf61dcd63a5daae2c8af0608b3a49d0f3543e5;hb=c401a51179f66ad22b462320d2b680fc6e564fdd;hp=0000000000000000000000000000000000000000;hpb=16ca2a55b06a657b9592aa6ed0e45755b177e320;p=aai%2Fesr-server.git diff --git a/esr-mgr/src/test/java/org/onap/aai/esr/entity/aai/EsrVnfmTest.java b/esr-mgr/src/test/java/org/onap/aai/esr/entity/aai/EsrVnfmTest.java new file mode 100644 index 0000000..efdf61d --- /dev/null +++ b/esr-mgr/src/test/java/org/onap/aai/esr/entity/aai/EsrVnfmTest.java @@ -0,0 +1,54 @@ +/** + * Copyright 2017 ZTE Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.aai.esr.entity.aai; + +import static org.junit.Assert.assertEquals; + +import org.junit.Test; + +public class EsrVnfmTest { + @Test + public void getterAndSetter4vnfmId(){ + final String vnfmId = "vnfmId-test"; + EsrVnfm esrVnfm = new EsrVnfm(); + esrVnfm.setVnfmId(vnfmId); + assertEquals(esrVnfm.getVnfmId(), vnfmId); + } + + @Test + public void getterAndSetter4resourceVersion(){ + final String resourceVersion = "resourceVersion-test"; + EsrVnfm esrVnfm = new EsrVnfm(); + esrVnfm.setResourceVersion(resourceVersion); + assertEquals(esrVnfm.getResourceVersion(), resourceVersion); + } + + @Test + public void getterAndSetter4vimId(){ + final String vimId = "vimId-test"; + EsrVnfm esrVnfm = new EsrVnfm(); + esrVnfm.setVimId(vimId); + assertEquals(esrVnfm.getVimId(), vimId); + } + + @Test + public void getterAndSetter4certificateUrl(){ + final String certificateUrl = "certificateUrl-test"; + EsrVnfm esrVnfm = new EsrVnfm(); + esrVnfm.setCertificateUrl(certificateUrl); + assertEquals(esrVnfm.getCertificateUrl(), certificateUrl); + } +}