@Test @DataSet({"ViewSpaces.xls","ViewPoints.xls"}) public void testUpdateViewSpace()throws Exception{ ViewSpace viewSpace = viewSpaceService.getFullViewSpace(initSpaceId); assertNotNull(viewSpace); assertEquals("厦门思明",viewSpace.getAddress()); viewSpace.setAddress("厦门思明区"); viewSpaceService.updateViewSpace(viewSpace); ViewSpace newViewSpace = viewSpaceService.getFullViewSpace(viewSpace.getSpaceId()); assertNotNull(newViewSpace); assertEquals("厦门思明区",newViewSpace.getAddress()); }
public void updateViewSpace(ViewSpace viewSpace) { viewSpaceDao.update(viewSpace); }
ViewSpaceService { public void updateViewSpace(ViewSpace viewSpace) { viewSpaceDao.update(viewSpace); } }
ViewSpaceService { public void updateViewSpace(ViewSpace viewSpace) { viewSpaceDao.update(viewSpace); }  }
ViewSpaceService { public void updateViewSpace(ViewSpace viewSpace) { viewSpaceDao.update(viewSpace); }  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 void updateViewSpace(ViewSpace viewSpace) { viewSpaceDao.update(viewSpace); }  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);  }