@Test @DataSet({"ViewSpaces.xls","ViewPoints.xls"}) public void testQueryViewSpaceByName() { String name = "鼓浪屿"; List<ViewSpace> viewSpaces = viewSpaceService.queryViewSpaceByName(name); assertNotNull(viewSpaces); assertTrue(viewSpaces.size() > 0); }
public List<ViewSpace> queryViewSpaceByName(String name) { return viewSpaceDao.queryByName(name); }
ViewSpaceService { public List<ViewSpace> queryViewSpaceByName(String name) { return viewSpaceDao.queryByName(name); } }
ViewSpaceService { public List<ViewSpace> queryViewSpaceByName(String name) { return viewSpaceDao.queryByName(name); }  }
ViewSpaceService { public List<ViewSpace> queryViewSpaceByName(String name) { return viewSpaceDao.queryByName(name); }  void addViewSpace(ViewSpace viewSpace); void deleteViewSpace(int spaceId); void updateViewSpace(ViewSpace viewSpace); List<ViewSpace> queryViewSpaceByName(String name); List<ViewSpace> queryViewSpaceByUserId(int userId); List<ViewSpace> getAllViewSpaces(); ViewSpace getFullViewSpace(int spaceId); ViewSpace getViewSpace(int spaceId); void addCommentLog(CommentLog commentLog); List<CommentLog> getCommentLogBySpaceId(int spaceId); void addViewPoint(ViewPoint viewPoint); ViewPoint getFullViewPoint(int pointId); void deleteViewPoint(int pointId); void updateViewPoint(ViewPoint viewPoint); void setViewSpaceDao(ViewSpaceDao viewSpaceDao); void setViewPointDao(ViewPointDao viewPointDao); void setCommentLogDao(CommentLogDao commentLogDao); }
ViewSpaceService { public List<ViewSpace> queryViewSpaceByName(String name) { return viewSpaceDao.queryByName(name); }  void addViewSpace(ViewSpace viewSpace); void deleteViewSpace(int spaceId); void updateViewSpace(ViewSpace viewSpace); List<ViewSpace> queryViewSpaceByName(String name); List<ViewSpace> queryViewSpaceByUserId(int userId); List<ViewSpace> getAllViewSpaces(); ViewSpace getFullViewSpace(int spaceId); ViewSpace getViewSpace(int spaceId); void addCommentLog(CommentLog commentLog); List<CommentLog> getCommentLogBySpaceId(int spaceId); void addViewPoint(ViewPoint viewPoint); ViewPoint getFullViewPoint(int pointId); void deleteViewPoint(int pointId); void updateViewPoint(ViewPoint viewPoint); void setViewSpaceDao(ViewSpaceDao viewSpaceDao); void setViewPointDao(ViewPointDao viewPointDao); void setCommentLogDao(CommentLogDao commentLogDao);  }