aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/test/java/org/onap/vid/roles/RoleTest.java
blob: 463b29f5793612b679ba8f10afe1b3d8147ff57f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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();
    }
}