@Test public void testFindByCriteria() { SequencerRunService sequencerRunServiceImpl = BeanFactory.getSequencerRunServiceBean(); List<SequencerRun> found = sequencerRunServiceImpl.findByCriteria("srk", false); assertEquals(1, found.size()); found = sequencerRunServiceImpl.findByCriteria("Run", true); assertEquals(0, found.size()); found = sequencerRunServiceImpl.findByCriteria("Run", false); assertEquals(1, found.size()); found = sequencerRunServiceImpl.findByCriteria("4715", false); assertEquals(1, found.size()); }
@Override public List<SequencerRun> findByCriteria(String criteria, boolean isCaseSens) { return sequencerRunDAO.findByCriteria(criteria, isCaseSens); }
SequencerRunServiceImpl implements SequencerRunService { @Override public List<SequencerRun> findByCriteria(String criteria, boolean isCaseSens) { return sequencerRunDAO.findByCriteria(criteria, isCaseSens); } }
SequencerRunServiceImpl implements SequencerRunService { @Override public List<SequencerRun> findByCriteria(String criteria, boolean isCaseSens) { return sequencerRunDAO.findByCriteria(criteria, isCaseSens); } SequencerRunServiceImpl(); }
SequencerRunServiceImpl implements SequencerRunService { @Override public List<SequencerRun> findByCriteria(String criteria, boolean isCaseSens) { return sequencerRunDAO.findByCriteria(criteria, isCaseSens); } SequencerRunServiceImpl(); @Override void setSequencerRunDAO(SequencerRunDAO sequencerRunDAO); void setLaneDAO(LaneDAO laneDAO); void setFileDAO(FileDAO fileDAO); @Override Integer insert(SequencerRun sequencerRun); @Override Integer insert(SequencerRunWizardDTO sequencerRun); @Override void update(SequencerRun sequencerRun); @Override void delete(SequencerRun sequencerRun); @Override List<SequencerRun> setProcCountInfo(List<SequencerRun> list); @Override List<SequencerRun> list(Registration registration); @Override List<SequencerRun> list(Registration registration, Boolean isAsc); @Override SequencerRun findByName(String name); @Override SequencerRunWizardDTO findByID(Integer expID); @Override SequencerRun findBySWAccession(Integer swAccession); @Override List<SequencerRun> findByOwnerID(Integer registrationId); @Override boolean hasNameBeenUsed(String oldName, String newName); @Override List<SequencerRun> findByCriteria(String criteria, boolean isCaseSens); @Override SequencerRun updateDetached(SequencerRun sequencerRun); @Override List<SequencerRun> list(); @Override void update(Registration registration, SequencerRun sequencerRun); @Override Integer insert(Registration registration, SequencerRun sequencerRun); @Override Integer insert(Registration registration, SequencerRunWizardDTO sequencerRun); @Override SequencerRun updateDetached(Registration registration, SequencerRun sequencerRun); }
SequencerRunServiceImpl implements SequencerRunService { @Override public List<SequencerRun> findByCriteria(String criteria, boolean isCaseSens) { return sequencerRunDAO.findByCriteria(criteria, isCaseSens); } SequencerRunServiceImpl(); @Override void setSequencerRunDAO(SequencerRunDAO sequencerRunDAO); void setLaneDAO(LaneDAO laneDAO); void setFileDAO(FileDAO fileDAO); @Override Integer insert(SequencerRun sequencerRun); @Override Integer insert(SequencerRunWizardDTO sequencerRun); @Override void update(SequencerRun sequencerRun); @Override void delete(SequencerRun sequencerRun); @Override List<SequencerRun> setProcCountInfo(List<SequencerRun> list); @Override List<SequencerRun> list(Registration registration); @Override List<SequencerRun> list(Registration registration, Boolean isAsc); @Override SequencerRun findByName(String name); @Override SequencerRunWizardDTO findByID(Integer expID); @Override SequencerRun findBySWAccession(Integer swAccession); @Override List<SequencerRun> findByOwnerID(Integer registrationId); @Override boolean hasNameBeenUsed(String oldName, String newName); @Override List<SequencerRun> findByCriteria(String criteria, boolean isCaseSens); @Override SequencerRun updateDetached(SequencerRun sequencerRun); @Override List<SequencerRun> list(); @Override void update(Registration registration, SequencerRun sequencerRun); @Override Integer insert(Registration registration, SequencerRun sequencerRun); @Override Integer insert(Registration registration, SequencerRunWizardDTO sequencerRun); @Override SequencerRun updateDetached(Registration registration, SequencerRun sequencerRun);  }