mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ActionTrackingService work
Initial cancel support, and some duplicate instance work (mostly updating tests to handle it coming along). Duplicate id assignment work still remains git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21340 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -795,6 +795,7 @@ public class ActionServiceImplTest extends BaseAlfrescoSpringTest
|
||||
|
||||
final SleepActionExecuter sleepAction = (SleepActionExecuter)applicationContext.getBean("sleep-action");
|
||||
assertNotNull(sleepAction);
|
||||
sleepAction.setSleepMs(10);
|
||||
|
||||
final int actionSubmissonCount = 4; // Rather arbitrary count.
|
||||
for (int i = 0; i < actionSubmissonCount; i ++)
|
||||
@@ -883,7 +884,7 @@ public class ActionServiceImplTest extends BaseAlfrescoSpringTest
|
||||
|
||||
postAsyncActionTest(
|
||||
this.transactionService,
|
||||
1000,
|
||||
1000l,
|
||||
10,
|
||||
new AsyncTest()
|
||||
{
|
||||
@@ -1344,7 +1345,7 @@ public class ActionServiceImplTest extends BaseAlfrescoSpringTest
|
||||
boolean cancelled = actionTrackingService.isCancellationRequested(ca);
|
||||
if(cancelled)
|
||||
{
|
||||
throw new RuntimeException("Cancelled!");
|
||||
throw new ActionCancelledException(ca);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user