@Test public void testGet() { LifeServiceService userInfoService = new LifeServiceService(); LifeService userInfo = userInfoService.get(1); System.out.println(userInfo.getTitle()); }
@Test public void testDelete() { LifeServiceService userInfoService = new LifeServiceService(); userInfoService.delete(1); }
@Test public void testList() { LifeServiceService userInfoService = new LifeServiceService(); List list = userInfoService.list(); System.out.println(list); }
@Test public void testUpdate() { LifeService user_info = new LifeService(); user_info.setId(2); user_info.setTitle("yang"); user_info.setContent("yang22"); user_info.setDate_time(new Date()); LifeServiceService userInfoService = new LifeServiceService(); userInfoService.update(user_info); }