blob: 528b9b6b69b784303e71f165e34f2870b98f3c42 (
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
|
package org.openecomp.sdc.be.ecomp.converters;
import org.junit.Test;
import org.openecomp.portalsdk.core.restful.domain.EcompRole;
import org.openecomp.sdc.be.user.Role;
public class EcompRoleConverterTest {
@Test
public void testConvertEcompRoleToRole() throws Exception {
EcompRole ecompRole = new EcompRole();
String result;
// test 1
for (Role iterable_element : Role.values()) {
ecompRole.setId(new Long(iterable_element.ordinal()));
EcompRoleConverter.convertEcompRoleToRole(ecompRole);
}
EcompRoleConverter.convertEcompRoleToRole(null);
ecompRole.setId(new Long(4523535));
EcompRoleConverter.convertEcompRoleToRole(ecompRole);
}
}
|