aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/test/java/org/openecomp/vid/roles/RoleValidatorTest.java
blob: fc050baeaa67f62d84d70e2c3248eb71095a0a4b (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
package org.openecomp.vid.roles;

import org.junit.Test;
import org.openecomp.vid.mso.rest.RequestDetails;

public class RoleValidatorTest {

	private RoleValidator createTestSubject() {
		return new RoleValidator(null);
	}

	@Test
	public void testIsSubscriberPermitted() throws Exception {
		RoleValidator testSubject;
		String subscriberName = "";
		boolean result;

		// default test
		testSubject = createTestSubject();
		result = testSubject.isSubscriberPermitted(subscriberName);
	}

	@Test
	public void testIsServicePermitted() throws Exception {
		RoleValidator testSubject;
		String subscriberName = "";
		String serviceType = "";
		boolean result;

		// default test
		testSubject = createTestSubject();
		result = testSubject.isServicePermitted(subscriberName, serviceType);
	}

	@Test
	public void testIsMsoRequestValid() throws Exception {
		RoleValidator testSubject;
		RequestDetails mso_request = null;
		boolean result;

		// default test
		testSubject = createTestSubject();
		result = testSubject.isMsoRequestValid(mso_request);
	}

	@Test
	public void testIsTenantPermitted() throws Exception {
		RoleValidator testSubject;
		String globalCustomerId = "";
		String serviceType = "";
		String tenant = "";
		boolean result;

		// default test
		testSubject = createTestSubject();
		result = testSubject.isTenantPermitted(globalCustomerId, serviceType, tenant);
	}
}