diff --git a/redback-common/redback-common-ldap/src/test/java/org/apache/archiva/redback/common/ldap/role/TestLdapRoleMapper.java b/redback-common/redback-common-ldap/src/test/java/org/apache/archiva/redback/common/ldap/role/TestLdapRoleMapper.java index 8dbe6181..74feca9a 100644 --- a/redback-common/redback-common-ldap/src/test/java/org/apache/archiva/redback/common/ldap/role/TestLdapRoleMapper.java +++ b/redback-common/redback-common-ldap/src/test/java/org/apache/archiva/redback/common/ldap/role/TestLdapRoleMapper.java @@ -362,4 +362,19 @@ public class TestLdapRoleMapper } + @Test + public void hasRoleFound() + throws Exception + { + assertTrue( ldapRoleMapper.hasRole( getDirContext(), "Internal Repo Observer" ) ); + } + + @Test + public void hasRoleNotFound() + throws Exception + { + assertFalse( ldapRoleMapper.hasRole( getDirContext(), "Australian wine is good but not as French! " ) ); + } + + }