use of org.kie.api.task.UserGroupCallback in project jbpm by kiegroup.
the class LDAPUserGroupCallbackImplTest method testUserExists.
@Test
public void testUserExists() {
UserGroupCallback ldapUserGroupCallback = createLdapUserGroupCallback(Configuration.CUSTOM);
Assertions.assertThat(ldapUserGroupCallback).isNotNull();
boolean userExists = ldapUserGroupCallback.existsUser("john");
Assertions.assertThat(userExists).isTrue();
}
use of org.kie.api.task.UserGroupCallback in project jbpm by kiegroup.
the class LDAPUserGroupCallbackImplTest method testUsersObjectScopePeopleContext.
@Test
public void testUsersObjectScopePeopleContext() {
UserGroupCallback ldapUserGroupCallback = createLdapUserGroupCallbackWithUserCtx(SearchScope.OBJECT_SCOPE, "ou=People,dc=jbpm,dc=org");
assertUsers(ldapUserGroupCallback, false, false, false, false);
}
use of org.kie.api.task.UserGroupCallback in project jbpm by kiegroup.
the class LDAPUserGroupCallbackImplTest method testGroupExistsWithCommaInDN.
@Test
public void testGroupExistsWithCommaInDN() {
UserGroupCallback ldapUserGroupCallback = createLdapUserGroupCallback(Configuration.CUSTOM);
Assertions.assertThat(ldapUserGroupCallback).isNotNull();
boolean groupExists = ldapUserGroupCallback.existsGroup("manager,eng");
Assertions.assertThat(groupExists).isTrue();
}
use of org.kie.api.task.UserGroupCallback in project jbpm by kiegroup.
the class LDAPUserGroupCallbackImplTest method testUserExistsDefaultProperties.
@Test
public void testUserExistsDefaultProperties() {
UserGroupCallback ldapUserGroupCallback = createLdapUserGroupCallback(Configuration.DEFAULT);
Assertions.assertThat(ldapUserGroupCallback).isNotNull();
boolean userExists = ldapUserGroupCallback.existsUser("john");
Assertions.assertThat(userExists).isTrue();
}
use of org.kie.api.task.UserGroupCallback in project jbpm by kiegroup.
the class LDAPUserGroupCallbackImplTest method testUserExistsWithCommaInDN.
@Test
public void testUserExistsWithCommaInDN() {
UserGroupCallback ldapUserGroupCallback = createLdapUserGroupCallback(Configuration.CUSTOM);
Assertions.assertThat(ldapUserGroupCallback).isNotNull();
boolean userExists = ldapUserGroupCallback.existsUser("john,jr");
Assertions.assertThat(userExists).isTrue();
}
Aggregations