mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-9689 - Reinstate FTP tests
ALF-9404 - Save As New file. ALF-8756 - Robocopy and Touch git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29551 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -128,6 +128,12 @@ class ScenarioOpenFileInstance implements ScenarioInstance
|
||||
if(operation instanceof DeleteFileOperation)
|
||||
{
|
||||
DeleteFileOperation d = (DeleteFileOperation)operation;
|
||||
|
||||
if(d.getName() == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
if(name.equalsIgnoreCase(d.getName()))
|
||||
{
|
||||
logger.debug("Anti-Pattern - delete of the open file, scenario:" + this);
|
||||
@@ -169,6 +175,12 @@ class ScenarioOpenFileInstance implements ScenarioInstance
|
||||
if(operation instanceof CloseFileOperation)
|
||||
{
|
||||
CloseFileOperation c = (CloseFileOperation)operation;
|
||||
|
||||
if(c.getName() == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
if(name.equalsIgnoreCase(c.getName()))
|
||||
{
|
||||
NetworkFile file = c.getNetworkFile();
|
||||
@@ -279,6 +291,11 @@ class ScenarioOpenFileInstance implements ScenarioInstance
|
||||
{
|
||||
OpenFileOperation o = (OpenFileOperation)operation;
|
||||
|
||||
if(o.getName() == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
if(name.equalsIgnoreCase(o.getName()))
|
||||
{
|
||||
if(o.isWriteAccess())
|
||||
@@ -413,5 +430,7 @@ class ScenarioOpenFileInstance implements ScenarioInstance
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user