예제 #1
0
  @Test
  public void testGet() {
    LifeServiceService userInfoService = new LifeServiceService();

    LifeService userInfo = userInfoService.get(1);
    System.out.println(userInfo.getTitle());
  }
예제 #2
0
  @Test
  public void testDelete() {

    LifeServiceService userInfoService = new LifeServiceService();

    userInfoService.delete(1);
  }
예제 #3
0
  @Test
  public void testList() {
    LifeServiceService userInfoService = new LifeServiceService();

    List list = userInfoService.list();
    System.out.println(list);
  }
예제 #4
0
  @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);
  }