@Test public void testGetRowsForSequencerRun() { try { InSessionExecutions.bindSessionToThread(); SampleReportService sampleReportService = BeanFactory.getSampleReportServiceBean(); SequencerRunService sequencerRunService = BeanFactory.getSequencerRunServiceBean(); SequencerRun sr = sequencerRunService.findByID(1); List<SampleReportRow> reportRow = sampleReportService.getRowsForSequencerRun(sr); assertEquals(10, reportRow.size()); } finally { InSessionExecutions.unBindSessionFromTheThread(); } }
@Override public List<SampleReportRow> getRowsForSequencerRun(SequencerRun sr) { if (sr == null) { return getRowsWithSequencerRuns(); } return sampleReportDAO.getRowsForSequencerRun(sr); }
SampleReportServiceImpl implements SampleReportService { @Override public List<SampleReportRow> getRowsForSequencerRun(SequencerRun sr) { if (sr == null) { return getRowsWithSequencerRuns(); } return sampleReportDAO.getRowsForSequencerRun(sr); } }
SampleReportServiceImpl implements SampleReportService { @Override public List<SampleReportRow> getRowsForSequencerRun(SequencerRun sr) { if (sr == null) { return getRowsWithSequencerRuns(); } return sampleReportDAO.getRowsForSequencerRun(sr); }  }
SampleReportServiceImpl implements SampleReportService { @Override public List<SampleReportRow> getRowsForSequencerRun(SequencerRun sr) { if (sr == null) { return getRowsWithSequencerRuns(); } return sampleReportDAO.getRowsForSequencerRun(sr); }  void setSampleReportDAO(SampleReportDAO dao); @Override List<Status> getStatusesForStudy(Study study); @Override List<Workflow> getWorkflowsForStudy(Study study); @Override List<Workflow> getWorkflows(SequencerRun seqRun); @Override int countOfStatus(Study study, Status status); @Override int countOfStatus(SequencerRun seqRun, Status status); @Override int countOfStatus(Study study, Workflow workflow, Status status); @Override int countOfStatus(SequencerRun seqRun, Workflow workflow, Status status); @Override int countOfRows(SequencerRun seqRun); @Override List<Sample> getChildSamples(Study study); @Override Status getStatus(Study study, Sample childSample, Workflow workflow); @Override Status getStatus(Study study, Sample sample, IUS ius, Lane lane, SequencerRun seqRun, Workflow workflow); @Override List<Status> getStatusesForWorkflow(Study study, Workflow workflow); @Override List<SampleReportRow> getRowsForSequencerRun(SequencerRun sr); @Override List<SampleReportRow> getRowsWithSequencerRuns(); @Override List<Status> getStatusesForWorkflow(SequencerRun seqRun, Workflow workflow); @Override List<Status> getStatusesForSequencerRun(SequencerRun seqRun); @Override List<SequencerRunReportId> getSequencerRunReportIds(SequencerRun seqRun, String sortField, String sortOrder, int offset,
            int limit); @Override List<SequencerRunReportId> getSequencerRunReportIds(SequencerRun seqRun); @Override List<SequencerRunReportId> getSequencerRunReportIds(SequencerRun seqRun, String sortField, String orderType); }
SampleReportServiceImpl implements SampleReportService { @Override public List<SampleReportRow> getRowsForSequencerRun(SequencerRun sr) { if (sr == null) { return getRowsWithSequencerRuns(); } return sampleReportDAO.getRowsForSequencerRun(sr); }  void setSampleReportDAO(SampleReportDAO dao); @Override List<Status> getStatusesForStudy(Study study); @Override List<Workflow> getWorkflowsForStudy(Study study); @Override List<Workflow> getWorkflows(SequencerRun seqRun); @Override int countOfStatus(Study study, Status status); @Override int countOfStatus(SequencerRun seqRun, Status status); @Override int countOfStatus(Study study, Workflow workflow, Status status); @Override int countOfStatus(SequencerRun seqRun, Workflow workflow, Status status); @Override int countOfRows(SequencerRun seqRun); @Override List<Sample> getChildSamples(Study study); @Override Status getStatus(Study study, Sample childSample, Workflow workflow); @Override Status getStatus(Study study, Sample sample, IUS ius, Lane lane, SequencerRun seqRun, Workflow workflow); @Override List<Status> getStatusesForWorkflow(Study study, Workflow workflow); @Override List<SampleReportRow> getRowsForSequencerRun(SequencerRun sr); @Override List<SampleReportRow> getRowsWithSequencerRuns(); @Override List<Status> getStatusesForWorkflow(SequencerRun seqRun, Workflow workflow); @Override List<Status> getStatusesForSequencerRun(SequencerRun seqRun); @Override List<SequencerRunReportId> getSequencerRunReportIds(SequencerRun seqRun, String sortField, String sortOrder, int offset,
            int limit); @Override List<SequencerRunReportId> getSequencerRunReportIds(SequencerRun seqRun); @Override List<SequencerRunReportId> getSequencerRunReportIds(SequencerRun seqRun, String sortField, String orderType);  }