mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
Fixed build failure in Bamboo as a result of r109490.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@109515 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -311,17 +311,28 @@ public class CustomModelServiceImplTest
|
|||||||
testUser.put(ContentModel.PROP_LASTNAME, "Doe");
|
testUser.put(ContentModel.PROP_LASTNAME, "Doe");
|
||||||
testUser.put(ContentModel.PROP_PASSWORD, "password");
|
testUser.put(ContentModel.PROP_PASSWORD, "password");
|
||||||
|
|
||||||
transactionHelper.doInTransaction(new RetryingTransactionCallback<Void>()
|
final NodeRef personNodeRef = transactionHelper.doInTransaction(new RetryingTransactionCallback<NodeRef>()
|
||||||
{
|
{
|
||||||
public Void execute() throws Exception
|
public NodeRef execute() throws Exception
|
||||||
{
|
{
|
||||||
personService.createPerson(testUser);
|
NodeRef nodeRef = personService.createPerson(testUser);
|
||||||
|
assertNotNull(nodeRef);
|
||||||
assertFalse(customModelService.isModelAdmin(userName));
|
assertFalse(customModelService.isModelAdmin(userName));
|
||||||
|
|
||||||
// Add the user to the group
|
// Add the user to the group
|
||||||
authorityService.addAuthority(CustomModelServiceImpl.GROUP_ALFRESCO_MODEL_ADMINISTRATORS_AUTHORITY, userName);
|
authorityService.addAuthority(CustomModelServiceImpl.GROUP_ALFRESCO_MODEL_ADMINISTRATORS_AUTHORITY, userName);
|
||||||
assertTrue(customModelService.isModelAdmin(userName));
|
assertTrue(customModelService.isModelAdmin(userName));
|
||||||
|
|
||||||
|
return nodeRef;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// Cleanup
|
||||||
|
transactionHelper.doInTransaction(new RetryingTransactionCallback<Void>()
|
||||||
|
{
|
||||||
|
public Void execute() throws Exception
|
||||||
|
{
|
||||||
|
personService.deletePerson(personNodeRef);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user