diff options
author | Sonsino, Ofir (os0695) <os0695@intl.att.com> | 2018-03-13 18:31:21 +0200 |
---|---|---|
committer | Sonsino, Ofir (os0695) <os0695@intl.att.com> | 2018-03-13 18:31:21 +0200 |
commit | d5ec7bf55217508e2b5cebe640d586598379f97a (patch) | |
tree | 4bbe052d2eb67c11c5fbc22998c95e55e7aef4d0 /vid-app-common/src/test/java/org/onap/vid/roles/RoleTest.java | |
parent | 80098ffa01c5a0f4dd5b99f41c31d51e9dc25762 (diff) |
Unit tests
Change-Id: Ib9f73b7ba5a509610896b8bbdc02c180e60ee959
Issue-ID: VID-197
Signed-off-by: Sonsino, Ofir (os0695) <os0695@intl.att.com>
Diffstat (limited to 'vid-app-common/src/test/java/org/onap/vid/roles/RoleTest.java')
-rw-r--r-- | vid-app-common/src/test/java/org/onap/vid/roles/RoleTest.java | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/vid-app-common/src/test/java/org/onap/vid/roles/RoleTest.java b/vid-app-common/src/test/java/org/onap/vid/roles/RoleTest.java new file mode 100644 index 000000000..463b29f57 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/roles/RoleTest.java @@ -0,0 +1,60 @@ +package org.onap.vid.roles; + +import org.junit.Test; + +public class RoleTest { + + private Role createTestSubject() { + return new Role(EcompRole.READ, "", "", ""); + } + + @Test + public void testGetEcompRole() throws Exception { + Role testSubject; + EcompRole result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEcompRole(); + } + + @Test + public void testGetSubscribeName() throws Exception { + Role testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSubscribeName(); + } + + @Test + public void testSetSubscribeName() throws Exception { + Role testSubject; + String subscribeName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setSubscribeName(subscribeName); + } + + @Test + public void testGetServiceType() throws Exception { + Role testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getServiceType(); + } + + @Test + public void testGetTenant() throws Exception { + Role testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTenant(); + } +}
\ No newline at end of file |