Search in sources :

Example 1 with Role

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()));
}
Also used : Role(io.vertigo.account.authorization.metamodel.Role) DefinitionSpace(io.vertigo.core.definition.DefinitionSpace) Test(org.junit.Test)

Aggregations

Role (io.vertigo.account.authorization.metamodel.Role)1 DefinitionSpace (io.vertigo.core.definition.DefinitionSpace)1 Test (org.junit.Test)1