summaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/test/java/org/onap/vid/roles/RoleTest.java
diff options
context:
space:
mode:
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.java60
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