Fixed test

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2451 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2006-02-20 13:30:48 +00:00
parent 58d6778173
commit e55b533ec9

View File

@@ -47,11 +47,11 @@ public class RuntimeExecutableContentTransformerTest extends BaseAlfrescoTestCas
RuntimeExec transformCommand = new RuntimeExec();
Map<String, String> commandMap = new HashMap<String, String>(5);
commandMap.put("Linux", "mv -f ${source} ${target}");
commandMap.put("*", "cmd /c copy /Y \"${source}\" \"${target}\"");
commandMap.put(".*", "cmd /c copy /Y \"${source}\" \"${target}\"");
transformCommand.setCommandMap(commandMap);
transformCommand.setErrorCodes("1, 2");
transformer.setTransformCommand(transformCommand);
transformer.setMimetypeService(serviceRegistry.getMimetypeService());
transformer.setErrorCodes("1, 2");
// initialise so that it doesn't score 0
transformer.init();