Ejemplo n.º 1
0
  @Test
  public void testGet() {
    LifeServiceService userInfoService = new LifeServiceService();

    LifeService userInfo = userInfoService.get(1);
    System.out.println(userInfo.getTitle());
  }
Ejemplo n.º 2
0
  @Test
  public void testDelete() {

    LifeServiceService userInfoService = new LifeServiceService();

    userInfoService.delete(1);
  }
Ejemplo n.º 3
0
  @Test
  public void testList() {
    LifeServiceService userInfoService = new LifeServiceService();

    List list = userInfoService.list();
    System.out.println(list);
  }
Ejemplo n.º 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);
  }