mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)
60595: Merged V4.2-BUG-FIX (4.2.2) to HEAD-BUG-FIX (Cloud/4.3) 60362: Merged DEV to V4.2-BUG-FIX (4.2.2) 58112: Added missing transaction(s) in CheckOutCheckInServiceImplTest (MNT-9806) 58113: Added missing transaction(s) in LockableAspectInterceptorTest (MNT-9806) 58114: Added missing transaction(s) in LockableAspectInterceptorTest (MNT-9806) 58115: Added missing transaction(s) in TransactionCleanupTest (MNT-9806) 58116: Added missing transaction(s) in GetChildrenCannedQueryTest (MNT-9806) 58118: Added missing transaction(s) in RatingServiceIntegrationTest (MNT-9806) 58119: Added missing transaction(s) in ReplicationServiceIntegrationTest (MNT-9806) 58121: Added missing transaction(s) in PersonTest (MNT-9806) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@62326 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -679,10 +679,10 @@ public class CheckOutCheckInServiceImplTest extends BaseSpringTest
|
||||
|
||||
final NodeRef finalNodeRef = origNodeRef;
|
||||
|
||||
this.transactionService.getRetryingTransactionHelper().doInTransaction(
|
||||
new RetryingTransactionCallback<Object>()
|
||||
NodeRef wk3 = this.transactionService.getRetryingTransactionHelper().doInTransaction(
|
||||
new RetryingTransactionCallback<NodeRef>()
|
||||
{
|
||||
public Object execute()
|
||||
public NodeRef execute()
|
||||
{
|
||||
NodeRef wk2 = cociService.getWorkingCopy(finalNodeRef);
|
||||
assertNotNull(wk2);
|
||||
@@ -691,12 +691,10 @@ public class CheckOutCheckInServiceImplTest extends BaseSpringTest
|
||||
assertNotNull(orig2);
|
||||
assertEquals(origNodeRef, orig2);
|
||||
|
||||
cociService.cancelCheckout(workingCopy);
|
||||
return null;
|
||||
cociService.cancelCheckout(workingCopy);
|
||||
return cociService.getWorkingCopy(nodeRef);
|
||||
}
|
||||
});
|
||||
|
||||
NodeRef wk3 = cociService.getWorkingCopy(this.nodeRef);
|
||||
assertNull(wk3);
|
||||
}
|
||||
/**
|
||||
@@ -730,21 +728,19 @@ public class CheckOutCheckInServiceImplTest extends BaseSpringTest
|
||||
|
||||
final NodeRef finalNodeRef = origNodeRef;
|
||||
|
||||
this.transactionService.getRetryingTransactionHelper().doInTransaction(
|
||||
new RetryingTransactionCallback<Object>()
|
||||
NodeRef wk3 = this.transactionService.getRetryingTransactionHelper().doInTransaction(
|
||||
new RetryingTransactionCallback<NodeRef>()
|
||||
{
|
||||
public Object execute()
|
||||
public NodeRef execute()
|
||||
{
|
||||
NodeRef wk2 = cociService.getWorkingCopy(finalNodeRef);
|
||||
assertNotNull(wk2);
|
||||
assertEquals(workingCopy, wk2);
|
||||
|
||||
cociService.cancelCheckout(workingCopy);
|
||||
return null;
|
||||
return cociService.getWorkingCopy(nodeRef);
|
||||
}
|
||||
});
|
||||
|
||||
NodeRef wk3 = cociService.getWorkingCopy(this.nodeRef);
|
||||
assertNull(wk3);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user