@Test public void returnsTheCorrectUser() throws Exception { User user = User.named("Me"); User returnedUser = sessionMeResource.getInformation(user); assertThat(returnedUser).isEqualTo(user); }
@Timed @ExceptionMetered @GET @Produces(APPLICATION_JSON) public User getInformation(@Auth User user) { logger.info("User '{}' accessing me.", user); return user; }
SessionMeResource { @Timed @ExceptionMetered @GET @Produces(APPLICATION_JSON) public User getInformation(@Auth User user) { logger.info("User '{}' accessing me.", user); return user; } }
SessionMeResource { @Timed @ExceptionMetered @GET @Produces(APPLICATION_JSON) public User getInformation(@Auth User user) { logger.info("User '{}' accessing me.", user); return user; }  }
SessionMeResource { @Timed @ExceptionMetered @GET @Produces(APPLICATION_JSON) public User getInformation(@Auth User user) { logger.info("User '{}' accessing me.", user); return user; }  @Timed @ExceptionMetered @GET @Produces(APPLICATION_JSON) User getInformation(@Auth User user); }
SessionMeResource { @Timed @ExceptionMetered @GET @Produces(APPLICATION_JSON) public User getInformation(@Auth User user) { logger.info("User '{}' accessing me.", user); return user; }  @Timed @ExceptionMetered @GET @Produces(APPLICATION_JSON) User getInformation(@Auth User user);  }