public void testAeReportHasWorkflowOnActiveReportsWithInactiveReports() { Report report = Fixtures.createReport("test report"); report.setStatus(ReportStatus.AMENDED); report.setWorkflowId(2); ExpeditedAdverseEventReport aeReport = new ExpeditedAdverseEventReport(); aeReport.addReport(report); assertFalse( "aeReportHasWorkflowOnActive reports should have returned false", impl.aeReportHasWorkflowOnActiveReports(aeReport)); }
public void testAeReportHasWorkflowOnActiveReportsWithActiveReports() { Report report = Fixtures.createReport("test report"); report.setStatus(ReportStatus.COMPLETED); report.setWorkflowId(1); ExpeditedAdverseEventReport aeReport = new ExpeditedAdverseEventReport(); aeReport.addReport(report); assertTrue( "aeReportHasWorkflowOnActive reports should have returned true", impl.aeReportHasWorkflowOnActiveReports(aeReport)); }