@Test @DataSet({"ViewSpaces.xls","EmptyViewPoint.xls"}) public void testAddViewPoint()throws Exception{ ViewPoint viewPoint = XlsDataSetBeanFactory.createBean(ViewSpaceServiceTest.class, "AddViewPoint.xls", "t_view_point", ViewPoint.class); ViewSpace viewSpace = new ViewSpace(); viewSpace.setSpaceId(initSpaceId); viewPoint.setViewSpace(viewSpace); viewSpaceService.addViewPoint(viewPoint); ViewPoint viewPointDB = viewSpaceService.getFullViewPoint(viewPoint.getPointId()); assertNotNull(viewPointDB); assertEquals(viewPoint.getTicketPrice(),viewPointDB.getTicketPrice()); }
public void addViewPoint(ViewPoint viewPoint) { viewPointDao.save(viewPoint); }
ViewSpaceService { public void addViewPoint(ViewPoint viewPoint) { viewPointDao.save(viewPoint); } }
ViewSpaceService { public void addViewPoint(ViewPoint viewPoint) { viewPointDao.save(viewPoint); }  }
ViewSpaceService { public void addViewPoint(ViewPoint viewPoint) { viewPointDao.save(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 addViewPoint(ViewPoint viewPoint) { viewPointDao.save(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);  }