Package chirp.service.representations

Examples of chirp.service.representations.UserRepresentation


  }

  @Test
  public void getUserMustReturnUser() {
    User expected = getUserRepository().createUser("testuser", "Test User");
    UserRepresentation actual = usersResource.path("testuser").get(UserRepresentation.class);
    assertEquals(expected.getUsername(), actual.getUsername());
    assertEquals(expected.getRealname(), actual.getRealname());
  }
View Full Code Here


  @GET
  @Path("{username}")
  @Produces(MediaType.APPLICATION_JSON)
  public UserRepresentation getUser(@PathParam("username") String username) {
    User user = userRepository.getUser(username);
    return new UserRepresentation(user, false);
  }
View Full Code Here

TOP

Related Classes of chirp.service.representations.UserRepresentation

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.