mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
REPO-2559, ALF-21909 Corrected missmatch in VirtualStoreImpl and VirtualQueryImpl. I corrected some name convention from my commit before (MNT-17113)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@137702 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -651,10 +651,10 @@ public class ThumbnailServiceImplTest extends BaseAlfrescoSpringTest
|
||||
/**
|
||||
* A simple listener which will delete the given node after the transition is completed
|
||||
*/
|
||||
private class CustomListener extends TransactionListenerAdapter
|
||||
private class TestNodeDeleterListener extends TransactionListenerAdapter
|
||||
{
|
||||
private final NodeRef nodeRef;
|
||||
private CustomListener(NodeRef nodeRef)
|
||||
private TestNodeDeleterListener(NodeRef nodeRef)
|
||||
{
|
||||
this.nodeRef = nodeRef;
|
||||
}
|
||||
@@ -736,9 +736,9 @@ public class ThumbnailServiceImplTest extends BaseAlfrescoSpringTest
|
||||
public Void execute() throws Throwable
|
||||
{
|
||||
// Delete the content node (pdfOrig) before the afterCommit code is executed
|
||||
CustomListener customListener = new CustomListener(pdfOrig);
|
||||
// I needs to have a higher priority as the implemented afterCommit. The priority in order are (0,1,2,3,4)
|
||||
AlfrescoTransactionSupport.bindListener(customListener, 1);
|
||||
TestNodeDeleterListener testNodeDeleterListener = new TestNodeDeleterListener(pdfOrig);
|
||||
// It needs to have a higher priority as the implemented afterCommit. The priority in order are (0,1,2,3,4)
|
||||
AlfrescoTransactionSupport.bindListener(testNodeDeleterListener, 1);
|
||||
|
||||
thumbnailService.createThumbnail(pdfOrig, ContentModel.PROP_CONTENT, MimetypeMap.MIMETYPE_IMAGE_JPEG, details.getTransformationOptions(), "doclib");
|
||||
return null;
|
||||
|
Reference in New Issue
Block a user