@Test @DataSet({"ViewSpaces.xls","ViewPoints.xls"}) public void testUpdateViewPoint()throws Exception{ ViewPoint viewPoint = viewSpaceService.getFullViewPoint(initPointId); assertNotNull(viewPoint); assertEquals(88.00f,viewPoint.getTicketPrice()); viewPoint.setTicketPrice(98.00f); viewSpaceService.updateViewPoint(viewPoint); ViewPoint newViewPoint = viewSpaceService.getFullViewPoint(viewPoint.getPointId()); assertNotNull(newViewPoint); assertEquals(98.00f,newViewPoint.getTicketPrice()); }
public void updateViewPoint(ViewPoint viewPoint) { viewPointDao.update(viewPoint); }
ViewSpaceService { public void updateViewPoint(ViewPoint viewPoint) { viewPointDao.update(viewPoint); } }
ViewSpaceService { public void updateViewPoint(ViewPoint viewPoint) { viewPointDao.update(viewPoint); }  }
ViewSpaceService { public void updateViewPoint(ViewPoint viewPoint) { viewPointDao.update(viewPoint); }  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 updateViewPoint(ViewPoint viewPoint) { viewPointDao.update(viewPoint); }  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);  }