Exemplo n.º 1
0
  @Test
  public void UserNameTest() {
    User u = new User();

    u.setName("foo");

    assertEquals("foo", u.getName());
  }
Exemplo n.º 2
0
 @GET
 public User getUser() {
   User user = new User();
   user.setId(12345L);
   user.setName("smallnest");
   user.setCreatedOn(new Date());
   return user;
 }