blob: b303b257c7854526f163fc06f4b7793dbe6fca2c (
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
|
package org.onap.vid.roles;
import org.junit.Test;
import org.onap.vid.mso.rest.RequestDetails;
public class RoleValidatorTest {
private RoleValidator createTestSubject() {
return new RoleValidator(null);
}
@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 testIsServicePermitted() throws Exception {
RoleValidator testSubject;
String subscriberName = "";
String serviceType = "";
boolean result;
// default test
testSubject = createTestSubject();
result = testSubject.isServicePermitted(subscriberName, serviceType);
}
@Test
public void testIsSubscriberPermitted() throws Exception {
RoleValidator testSubject;
String subscriberName = "";
boolean result;
// default test
testSubject = createTestSubject();
result = testSubject.isSubscriberPermitted(subscriberName);
}
@Test
public void testIsTenantPermitted() throws Exception {
RoleValidator testSubject;
String globalCustomerId = "";
String serviceType = "";
String tenantName = "";
boolean result;
// default test
testSubject = createTestSubject();
result = testSubject.isTenantPermitted(globalCustomerId, serviceType, tenantName);
}
}
|