diff options
author | Dan Timoney <dtimoney@att.com> | 2018-10-04 13:19:46 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-10-04 13:19:46 +0000 |
commit | b09e94e4c7154a61b6f5e4918635b9aface68a5f (patch) | |
tree | 33480dd8a65c25fd371db2b46b3851b12eeddf44 /ms/vlantag-api/src | |
parent | 10878e52df606b2c927001c6ae2017c8828b4119 (diff) | |
parent | 140e2b9c96590eaac2cda5da0080b59d49ae78c6 (diff) |
Merge "Added test cases to VlanTag class"
Diffstat (limited to 'ms/vlantag-api/src')
-rw-r--r-- | ms/vlantag-api/src/test/java/org/onap/ccsdk/apps/ms/vlangtagapi/core/model/VlanTagTest.java | 18 |
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); + } } |