RM-1099 (Refactor Transfer and Accession reports)

* Fixed failing test

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@58417 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tuna Aksoy
2013-11-28 23:00:21 +00:00
parent 3fc7c64032
commit 5dfbaf9263
2 changed files with 8 additions and 3 deletions

View File

@@ -38,8 +38,8 @@ import org.springframework.extensions.surf.util.I18NUtil;
public class FileReportAction extends RMActionExecuterAbstractBase implements ReportModel
{
/** Constants for the parameters passed from the UI */
private static final String REPORT_TYPE = "reportType";
private static final String DESTINATION = "destination";
public static final String REPORT_TYPE = "reportType";
public static final String DESTINATION = "destination";
/** I18N */
private static final String MSG_PARAM_NOT_SUPPLIED = "rm.action.parameter-not-supplied";

View File

@@ -28,6 +28,7 @@ import org.alfresco.module.org_alfresco_module_rm.action.impl.CutOffAction;
import org.alfresco.module.org_alfresco_module_rm.action.impl.DestroyAction;
import org.alfresco.module.org_alfresco_module_rm.report.Report;
import org.alfresco.module.org_alfresco_module_rm.report.ReportModel;
import org.alfresco.module.org_alfresco_module_rm.report.action.FileReportAction;
import org.alfresco.module.org_alfresco_module_rm.test.util.BaseRMTestCase;
import org.alfresco.module.org_alfresco_module_rm.test.util.CommonRMTestUtils;
import org.alfresco.service.cmr.repository.NodeRef;
@@ -105,6 +106,7 @@ public class ReportServiceImplTest extends BaseRMTestCase implements ReportModel
});
}
// FIXME!!! FileDestructionReport vs FileReport
public void testFileDestructionReportAction() throws Exception
{
doTestInTransaction(new Test<Void>()
@@ -117,7 +119,10 @@ public class ReportServiceImplTest extends BaseRMTestCase implements ReportModel
rmActionService.executeRecordsManagementAction(rmFolder, CompleteEventAction.NAME, params);
rmActionService.executeRecordsManagementAction(rmFolder, CutOffAction.NAME);
rmActionService.executeRecordsManagementAction(rmFolder, DestroyAction.NAME);
rmActionService.executeRecordsManagementAction(rmFolder, "fileDestructionReport");
Map<String, Serializable> fileReportParams = new HashMap<String, Serializable>(2);
fileReportParams.put(FileReportAction.REPORT_TYPE, "rmr:destructionReport");
fileReportParams.put(FileReportAction.DESTINATION, filePlan.toString());
rmActionService.executeRecordsManagementAction(rmFolder, "fileReport", fileReportParams);
return null;
}
});