mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
125781 rmunteanu: Merged 5.1.N (5.1.2) to 5.2.N (5.2.1) 125603 rmunteanu: Merged 5.1.1 (5.1.1) to 5.1.N (5.1.2) 125484 slanglois: MNT-16155 Update source headers - remove old Copyrights from Java and JSP dource files git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@127808 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
35 lines
1.0 KiB
Java
35 lines
1.0 KiB
Java
|
|
package org.alfresco.util.test.junitrules;
|
|
|
|
import static org.junit.Assert.assertEquals;
|
|
|
|
import org.alfresco.repo.transaction.RetryingTransactionHelper.RetryingTransactionCallback;
|
|
import org.alfresco.util.GUID;
|
|
|
|
/**
|
|
* Test class for {@link AlfrescoPerson}.
|
|
*
|
|
* @author Neil Mc Erlean
|
|
* @since 4.2
|
|
*/
|
|
public class AlfrescoPersonTest extends AbstractAlfrescoPersonTest
|
|
{
|
|
@Override protected String createTestUserName()
|
|
{
|
|
// In Community/Enterprise Alfresco, usernames are "just Strings" - e.g. they need not be email addresses.
|
|
return GUID.generate();
|
|
}
|
|
|
|
@Override protected void validateCmPersonNode(final String username, final boolean exists)
|
|
{
|
|
TRANSACTION_HELPER.doInTransaction(new RetryingTransactionCallback<Void>()
|
|
{
|
|
public Void execute() throws Throwable
|
|
{
|
|
assertEquals("Test person's existence was wrong", exists, PERSON_SERVICE.personExists(username));
|
|
return null;
|
|
}
|
|
});
|
|
}
|
|
}
|