summaryrefslogtreecommitdiffstats
path: root/ms
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2018-10-04 13:19:46 +0000
committerGerrit Code Review <gerrit@onap.org>2018-10-04 13:19:46 +0000
commitb09e94e4c7154a61b6f5e4918635b9aface68a5f (patch)
tree33480dd8a65c25fd371db2b46b3851b12eeddf44 /ms
parent10878e52df606b2c927001c6ae2017c8828b4119 (diff)
parent140e2b9c96590eaac2cda5da0080b59d49ae78c6 (diff)
Merge "Added test cases to VlanTag class"
Diffstat (limited to 'ms')
-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);
+ }
}