mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ContentDiskDriver test fix.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28877 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -2032,7 +2032,8 @@ public class ContentDiskDriverTest extends TestCase
|
||||
final RetryingTransactionHelper tran = transactionService.getRetryingTransactionHelper();
|
||||
|
||||
int openAction = FileAction.CreateNotExist;
|
||||
String FILE_PATH="\\testDeleteFile.new";
|
||||
final String FILE_NAME="testDeleteFileViaNodeService.new";
|
||||
final String FILE_PATH="\\" + FILE_NAME;
|
||||
|
||||
FileOpenParams params = new FileOpenParams(FILE_PATH, openAction, AccessMode.ReadWrite, FileAttribute.NTNormal, 0);
|
||||
|
||||
@@ -2052,7 +2053,7 @@ public class ContentDiskDriverTest extends TestCase
|
||||
file.close();
|
||||
|
||||
NodeRef companyHome = repositoryHelper.getCompanyHome();
|
||||
NodeRef newNode = nodeService.getChildByName(companyHome, ContentModel.ASSOC_CONTAINS, "testCreateFile.new");
|
||||
NodeRef newNode = nodeService.getChildByName(companyHome, ContentModel.ASSOC_CONTAINS, FILE_NAME);
|
||||
assertNotNull("can't find new node", newNode);
|
||||
|
||||
|
||||
@@ -2072,7 +2073,7 @@ public class ContentDiskDriverTest extends TestCase
|
||||
|
||||
|
||||
NodeRef companyHome = repositoryHelper.getCompanyHome();
|
||||
NodeRef newNode = nodeService.getChildByName(companyHome, ContentModel.ASSOC_CONTAINS, "testCreateFile.new");
|
||||
NodeRef newNode = nodeService.getChildByName(companyHome, ContentModel.ASSOC_CONTAINS, FILE_NAME);
|
||||
assertNotNull("can't find new node", newNode);
|
||||
nodeService.deleteNode(newNode);
|
||||
return null;
|
||||
|
Reference in New Issue
Block a user