mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
RM-1144 & RM-1145 - changes to file to action
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@61046 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
*/
|
||||
package org.alfresco.module.org_alfresco_module_rm.test;
|
||||
|
||||
import org.alfresco.repo.ParameterProcessorTestSuite;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.junit.runners.Suite;
|
||||
import org.junit.runners.Suite.SuiteClasses;
|
||||
@@ -36,7 +37,8 @@ import org.junit.runners.Suite.SuiteClasses;
|
||||
CapabilitiesTestSuite.class,
|
||||
ServicesTestSuite.class,
|
||||
WebScriptTestSuite.class,
|
||||
IssueTestSuite.class
|
||||
IssueTestSuite.class,
|
||||
ParameterProcessorTestSuite.class
|
||||
})
|
||||
public class AllTestSuite
|
||||
{
|
||||
|
@@ -31,6 +31,7 @@ import org.alfresco.module.org_alfresco_module_rm.test.webscript.RmAuthoritiesRe
|
||||
import org.alfresco.module.org_alfresco_module_rm.test.webscript.RmClassesRestApiTest;
|
||||
import org.alfresco.module.org_alfresco_module_rm.test.webscript.RmPropertiesRestApiTest;
|
||||
import org.alfresco.module.org_alfresco_module_rm.test.webscript.RoleRestApiTest;
|
||||
import org.alfresco.repo.web.scripts.SubstitutionSuggestionsRestApiTest;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.junit.runners.Suite;
|
||||
import org.junit.runners.Suite.SuiteClasses;
|
||||
@@ -56,7 +57,8 @@ import org.junit.runners.Suite.SuiteClasses;
|
||||
ActionDefinitionsRestApiTest.class,
|
||||
RmClassesRestApiTest.class,
|
||||
RmPropertiesRestApiTest.class,
|
||||
RmAuthoritiesRestApiTest.class
|
||||
RmAuthoritiesRestApiTest.class,
|
||||
SubstitutionSuggestionsRestApiTest.class
|
||||
})
|
||||
public class WebScriptTestSuite
|
||||
{
|
||||
|
@@ -46,6 +46,7 @@ public class FileToActionTest extends BaseRMTestCase
|
||||
private static final String PATH2 = "/rmcontainer/rmfolder";
|
||||
private static final String PATH_BAD = "monkey/rmfolder";
|
||||
private static final String PATH_CREATE = "rmcontainer/newrmfolder";
|
||||
private static final String LONG_PATH_CREATE = "/rmcontainer/one/two/three/four/newrmfolder";
|
||||
|
||||
private static final String PATH_SUB1 = "rmcontainer/${node.cm:title}";
|
||||
|
||||
@@ -189,6 +190,12 @@ public class FileToActionTest extends BaseRMTestCase
|
||||
createRecord(PATH_SUB1, "mytestvalue", "rmcontainer/mytestvalue");
|
||||
}
|
||||
|
||||
public void testCreatePath() throws Exception
|
||||
{
|
||||
initRecord();
|
||||
createRecord(LONG_PATH_CREATE, "newrmfolder", "rmcontainer/one/two/three/four/newrmfolder");
|
||||
}
|
||||
|
||||
private void createRecord(String path, String name)
|
||||
{
|
||||
createRecord(path, name, path);
|
||||
@@ -209,7 +216,7 @@ public class FileToActionTest extends BaseRMTestCase
|
||||
// set parameters
|
||||
Map<String, Serializable> params = new HashMap<String, Serializable>(1);
|
||||
params.put(FileToAction.PARAM_PATH, path);
|
||||
params.put(FileToAction.PARAM_CREATE_RECORD_FOLDER, true);
|
||||
params.put(FileToAction.PARAM_CREATE_RECORD_PATH, true);
|
||||
|
||||
// execute file-to action
|
||||
rmActionService.executeRecordsManagementAction(dmDocument, FileToAction.NAME, params);
|
||||
|
Reference in New Issue
Block a user