diff options
Diffstat (limited to 'appc-dg/appc-dg-shared/appc-dg-domain-model-lib')
-rw-r--r-- | appc-dg/appc-dg-shared/appc-dg-domain-model-lib/src/test/java/org/onap/appc/domainmodel/TestVnf.java | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/appc-dg/appc-dg-shared/appc-dg-domain-model-lib/src/test/java/org/onap/appc/domainmodel/TestVnf.java b/appc-dg/appc-dg-shared/appc-dg-domain-model-lib/src/test/java/org/onap/appc/domainmodel/TestVnf.java index 0503a7ce4..6ddb37ba1 100644 --- a/appc-dg/appc-dg-shared/appc-dg-domain-model-lib/src/test/java/org/onap/appc/domainmodel/TestVnf.java +++ b/appc-dg/appc-dg-shared/appc-dg-domain-model-lib/src/test/java/org/onap/appc/domainmodel/TestVnf.java @@ -105,8 +105,21 @@ public class TestVnf { @Test public void testGetSetIdentityUrl() { - Vnf vnf = new Vnf(); vnf.setIdentityUrl("testIdentityUrl"); assertEquals("testIdentityUrl", vnf.getIdentityUrl()); } + + @Test + public void testAddVserver() + { + Vserver vserver = new Vserver(); + vserver.setId("V1"); + vserver.setName("V1-Name"); + vserver.setRelatedLink("V1-relatedlink"); + vserver.setTenantId("V1-T1"); + vserver.setUrl("http://v1.net"); + vnf.addVserver(vserver); + assertEquals(1, vnf.getVservers().size()); + assertEquals(vserver, vnf.getVservers().get(0)); + } } |