use of io.vertigo.account.authorization.metamodel.Role in project vertigo by KleeGroup.
the class VSecurityManagerTest method testRole.
@Test
public void testRole() {
final DefinitionSpace definitionSpace = getApp().getDefinitionSpace();
final Role admin = definitionSpace.resolve("R_ADMIN", Role.class);
Assert.assertTrue("R_ADMIN".equals(admin.getName()));
final Role secretary = definitionSpace.resolve("R_SECRETARY", Role.class);
Assert.assertTrue("R_SECRETARY".equals(secretary.getName()));
}
Aggregations