@Test public void testFindByCriteria() { LaneService laneService = BeanFactory.getLaneServiceBean(); List<Lane> found = laneService.findByCriteria("_lAne", true); assertEquals(0, found.size()); found = laneService.findByCriteria("_lAne", false); assertEquals(8, found.size()); found = laneService.findByCriteria("4707", false); assertEquals(1, found.size()); }
@Override public List<Lane> findByCriteria(String criteria, boolean isCaseSens) { return laneDAO.findByCriteria(criteria, isCaseSens); }
LaneServiceImpl implements LaneService { @Override public List<Lane> findByCriteria(String criteria, boolean isCaseSens) { return laneDAO.findByCriteria(criteria, isCaseSens); } }
LaneServiceImpl implements LaneService { @Override public List<Lane> findByCriteria(String criteria, boolean isCaseSens) { return laneDAO.findByCriteria(criteria, isCaseSens); } LaneServiceImpl(); }
LaneServiceImpl implements LaneService { @Override public List<Lane> findByCriteria(String criteria, boolean isCaseSens) { return laneDAO.findByCriteria(criteria, isCaseSens); } LaneServiceImpl(); @Override void setLaneDAO(LaneDAO laneDAO); void setProcessingDAO(ProcessingDAO processingDAO); void setFileDAO(FileDAO fileDAO); void setIUSDAO(IUSDAO IUSDAO); @Override List<File> getFiles(Integer laneId); @Override List<File> getFiles(Integer studyId, String metaType); @Override boolean isHasFile(Integer studyId, String metaType); @Override boolean isHasFile(Integer laneId); @Override SortedSet<Lane> setWithHasFile(SortedSet<Lane> list); @Override SortedSet<Lane> listWithHasFile(SortedSet<Lane> list, String metaType); Integer updateLane(Sample sample, MultipartFile fileOne, MultipartFile fileTwo, String typeFile, String folderStore,
            Registration registration); @Override List<Lane> list(List<Integer> laneIds); @Override void insert(Lane lane); @Override void update(Lane lane); @Override void delete(Lane lane, boolean deleteRealFiles); @Override Lane findByName(String name); @Override Lane findByID(Integer laneID); @Override Lane findBySWAccession(Integer swAccession); @Override List<Lane> findByOwnerID(Integer registrationId); @Override List<File> listFile(Registration reqistration, String typeNode, List<File> list, String[] ids, String[] statuses); @Override List<Lane> findByCriteria(String criteria, boolean isCaseSens); @Override Lane updateDetached(Lane lane); @Override List<Lane> list(); @Override void update(Registration registration, Lane lane); @Override Integer insert(Registration registration, Lane lane); @Override Lane updateDetached(Registration registration, Lane lane); }
LaneServiceImpl implements LaneService { @Override public List<Lane> findByCriteria(String criteria, boolean isCaseSens) { return laneDAO.findByCriteria(criteria, isCaseSens); } LaneServiceImpl(); @Override void setLaneDAO(LaneDAO laneDAO); void setProcessingDAO(ProcessingDAO processingDAO); void setFileDAO(FileDAO fileDAO); void setIUSDAO(IUSDAO IUSDAO); @Override List<File> getFiles(Integer laneId); @Override List<File> getFiles(Integer studyId, String metaType); @Override boolean isHasFile(Integer studyId, String metaType); @Override boolean isHasFile(Integer laneId); @Override SortedSet<Lane> setWithHasFile(SortedSet<Lane> list); @Override SortedSet<Lane> listWithHasFile(SortedSet<Lane> list, String metaType); Integer updateLane(Sample sample, MultipartFile fileOne, MultipartFile fileTwo, String typeFile, String folderStore,
            Registration registration); @Override List<Lane> list(List<Integer> laneIds); @Override void insert(Lane lane); @Override void update(Lane lane); @Override void delete(Lane lane, boolean deleteRealFiles); @Override Lane findByName(String name); @Override Lane findByID(Integer laneID); @Override Lane findBySWAccession(Integer swAccession); @Override List<Lane> findByOwnerID(Integer registrationId); @Override List<File> listFile(Registration reqistration, String typeNode, List<File> list, String[] ids, String[] statuses); @Override List<Lane> findByCriteria(String criteria, boolean isCaseSens); @Override Lane updateDetached(Lane lane); @Override List<Lane> list(); @Override void update(Registration registration, Lane lane); @Override Integer insert(Registration registration, Lane lane); @Override Lane updateDetached(Registration registration, Lane lane);  }