From 140e2b9c96590eaac2cda5da0080b59d49ae78c6 Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Tue, 25 Sep 2018 11:24:35 +0530 Subject: 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 --- .../apps/ms/vlangtagapi/core/model/VlanTagTest.java | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'ms') 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); + } } -- cgit 1.2.3-korg