aboutsummaryrefslogtreecommitdiffstats
path: root/appc-dg/appc-dg-shared/appc-dg-domain-model-lib
diff options
context:
space:
mode:
authorDunietz, Irwin <id1681@att.com>2020-01-16 15:13:14 -0500
committerTakamune Cho <takamune.cho@att.com>2020-01-29 19:44:48 +0000
commitb5fe8a69e90b950c07dc11af481eab7e9bab52c6 (patch)
tree3da81ce60554e65b93776b9aea647f3c6d8679ab /appc-dg/appc-dg-shared/appc-dg-domain-model-lib
parent9b32cb60360a2a2973c621053510718de0072111 (diff)
Change code in appc dispatcher for new LCMs in R6
Also introduce some minor improvements to robustness, efficiency, & formatting. Issue-ID: APPC-1789 Signed-off-by: Dunietz, Irwin <id1681@att.com> Change-Id: I82d970c2f7cde6c8dab1222af86ea70ce93b7e50
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.java26
1 files changed, 14 insertions, 12 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 6ddb37ba1..176900a34 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
@@ -6,6 +6,8 @@
*=================================================================================
* Modifications Copyright 2018 IBM.
*=================================================================================
+* Modifications Copyright (C) 2019 AT&T Intellectual Property
+*=================================================================================
* 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
@@ -37,28 +39,28 @@ public class TestVnf {
@Before
public void SetUp() {
- vnf=new Vnf();
+ vnf = new Vnf();
}
@Test
public void testGetVnfId() {
vnf.setVnfId("Z");
assertNotNull(vnf.getVnfId());
- assertEquals(vnf.getVnfId(),"Z");
+ assertEquals(vnf.getVnfId(), "Z");
}
@Test
public void testGetvnfType() {
vnf.setVnfType("A");
assertNotNull(vnf.getVnfType());
- assertEquals(vnf.getVnfType(),"A");
+ assertEquals(vnf.getVnfType(), "A");
}
@Test
public void testGetVnfVersion() {
vnf.setVnfVersion("1.0");
assertNotNull(vnf.getVnfVersion());
- assertEquals(vnf.getVnfVersion(),"1.0");
+ assertEquals(vnf.getVnfVersion(), "1.0");
}
@Test
@@ -66,8 +68,8 @@ public class TestVnf {
List<Vserver> vservers = new LinkedList<>();
vnf.setVservers(vservers);
assertNotNull(vnf.getVservers());
- assertEquals(vnf.getVservers(),vservers);
-
+ assertEquals(vnf.getVservers(), vservers);
+
}
@Test
@@ -88,7 +90,7 @@ public class TestVnf {
vnfc.setVnfcType("B");
vnfc.setResilienceType("RS1");
vnfc.setMandatory(true);
- List<Vserver> vserverList=new LinkedList<>();
+ List<Vserver> vserverList = new LinkedList<>();
Vserver vserver = new Vserver();
vserver.setId("V1");
vserver.setName("V1-Name");
@@ -99,16 +101,16 @@ public class TestVnf {
vserverList.add(vserver);
vnfc.addVservers(vserverList);
vnf.setVservers(vserverList);
- assertTrue(vnf.getVnfcs()!=null);
+ assertTrue(vnf.getVnfcs() != null);
}
-
+
@Test
public void testGetSetIdentityUrl()
{
- vnf.setIdentityUrl("testIdentityUrl");
- assertEquals("testIdentityUrl", vnf.getIdentityUrl());
+ vnf.setIdentityUrl("testIdentityUrl");
+ assertEquals("testIdentityUrl", vnf.getIdentityUrl());
}
-
+
@Test
public void testAddVserver()
{