aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2018-09-25 11:24:35 +0530
committerIBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com>2018-09-25 11:24:54 +0530
commit140e2b9c96590eaac2cda5da0080b59d49ae78c6 (patch)
tree580a986ac5400654db0f23d5bb03cde0831b9edd
parent39df671e006ec2a16fb3d5360af2ba60a6f6ae17 (diff)
Added test cases to VlanTag class
added test cases for get/setVlanRole and toString functions. Issue-ID: CCSDK-552 Change-Id: Ie8eff442433c2a878ba892fda51a8d09fd800134 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
-rw-r--r--ms/vlantag-api/src/test/java/org/onap/ccsdk/apps/ms/vlangtagapi/core/model/VlanTagTest.java18
1 files changed, 17 insertions, 1 deletions
diff --git a/ms/vlantag-api/src/test/java/org/onap/ccsdk/apps/ms/vlangtagapi/core/model/VlanTagTest.java b/ms/vlantag-api/src/test/java/org/onap/ccsdk/apps/ms/vlangtagapi/core/model/VlanTagTest.java
index dafc89a1..314b12a2 100644
--- a/ms/vlantag-api/src/test/java/org/onap/ccsdk/apps/ms/vlangtagapi/core/model/VlanTagTest.java
+++ b/ms/vlantag-api/src/test/java/org/onap/ccsdk/apps/ms/vlangtagapi/core/model/VlanTagTest.java
@@ -56,6 +56,22 @@ public class VlanTagTest {
assertTrue(vlanTag.equals(vlanTag1));
assertTrue((Integer)vlanTag.hashCode() instanceof Integer);
}
-
+
+ @Test
+ public void testElementVlanRole() {
+ vlanTag.setElementVlanRole("role");
+ assertEquals("role", vlanTag.getElementVlanRole());
+ }
+
+ @Test
+ public void testToString() {
+ String value = vlanTag.toString();
+ assertEquals("class VlanTag {\n" +
+ " vlanUuid: null\n" +
+ " vlantagName: null\n" +
+ " vlantagValue: null\n" +
+ " elementVlanRole: null\n" +
+ "}", value);
+ }
}