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:
Mark Rogers
2011-07-08 09:51:29 +00:00
parent 7684f76b3b
commit 664c2bd4c8

View File

@@ -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;