Package com.wesabe.grendel.representations

Examples of com.wesabe.grendel.representations.UserListRepresentation


     
      this.user = mock(User.class);
      when(user.getId()).thenReturn("mrpeepers");
      when(user.toString()).thenReturn("mrpeepers");
     
      this.rep = new UserListRepresentation(uriInfo, ImmutableList.of(user));
    }
View Full Code Here


   * @see UserListRepresentation
   */
  @GET
  public UserListRepresentation list(@Context UriInfo uriInfo) {
    final List<User> users = userDAO.findAll();
    return new UserListRepresentation(uriInfo, users);
  }
View Full Code Here

TOP

Related Classes of com.wesabe.grendel.representations.UserListRepresentation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.