diff --git a/impl/core/src/test/java/security/authorization/custom/CustomAuthorizerTest.java b/impl/core/src/test/java/security/authorization/custom/CustomAuthorizerTest.java index fdd4722..0625abe 100644 --- a/impl/core/src/test/java/security/authorization/custom/CustomAuthorizerTest.java +++ b/impl/core/src/test/java/security/authorization/custom/CustomAuthorizerTest.java @@ -82,6 +82,15 @@ public class CustomAuthorizerTest { Assert.assertTrue(context.hasRole("role")); } + /** + * Verify if when already exist an authorizer, the things keeps working fine. + */ + @Test + public void hasPermitionAndHasRole(){ + Assert.assertTrue(context.hasPermission("resource", "operation")); + Assert.assertTrue(context.hasRole("role")); + } + @Test public void denyPermission(){ Assert.assertFalse(context.hasPermission("falseresource", "falseoperation")); -- libgit2 0.21.2