mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Fix for asynchronous action test. Authentication context was not set for complete asynchronous action execution transaction, therefore failed in commit processing.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2355 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -673,18 +673,18 @@ public class ActionServiceImplTest extends BaseAlfrescoSpringTest
|
||||
final NodeService finalNodeService = this.nodeService;
|
||||
final NodeRef finalNodeRef = this.nodeRef;
|
||||
|
||||
// postAsyncActionTest(
|
||||
// this.transactionService,
|
||||
// 100000000,
|
||||
// 10,
|
||||
// new AsyncTest()
|
||||
// {
|
||||
// public boolean executeTest()
|
||||
// {
|
||||
// return (
|
||||
// finalNodeService.hasAspect(finalNodeRef, ContentModel.ASPECT_VERSIONABLE));
|
||||
// };
|
||||
// });
|
||||
postAsyncActionTest(
|
||||
this.transactionService,
|
||||
1000,
|
||||
10,
|
||||
new AsyncTest()
|
||||
{
|
||||
public boolean executeTest()
|
||||
{
|
||||
return (
|
||||
finalNodeService.hasAspect(finalNodeRef, ContentModel.ASPECT_VERSIONABLE));
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -715,19 +715,19 @@ public class ActionServiceImplTest extends BaseAlfrescoSpringTest
|
||||
final NodeService finalNodeService = this.nodeService;
|
||||
final NodeRef finalNodeRef = this.nodeRef;
|
||||
|
||||
// postAsyncActionTest(
|
||||
// this.transactionService,
|
||||
// 1000,
|
||||
// 10,
|
||||
// new AsyncTest()
|
||||
// {
|
||||
// public boolean executeTest()
|
||||
// {
|
||||
// return (
|
||||
// finalNodeService.hasAspect(finalNodeRef, ContentModel.ASPECT_VERSIONABLE) &&
|
||||
// finalNodeService.hasAspect(finalNodeRef, ContentModel.ASPECT_LOCKABLE));
|
||||
// };
|
||||
// });
|
||||
postAsyncActionTest(
|
||||
this.transactionService,
|
||||
1000,
|
||||
10,
|
||||
new AsyncTest()
|
||||
{
|
||||
public boolean executeTest()
|
||||
{
|
||||
return (
|
||||
finalNodeService.hasAspect(finalNodeRef, ContentModel.ASPECT_VERSIONABLE) &&
|
||||
finalNodeService.hasAspect(finalNodeRef, ContentModel.ASPECT_LOCKABLE));
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
public void xtestAsyncLoadTest()
|
||||
|
Reference in New Issue
Block a user