public void testUpdate() { OtherUserService service = new OtherUserService(this.getContext()); User u = service.find(2); System.out.println("before update:" + u); u.setUsername("hehe~"); service.update(u); u = service.find(2); System.out.println("after update:" + u); }
public void testFindUser() { OtherUserService service = new OtherUserService(this.getContext()); User user = service.find(2); System.out.println(user); }