@Test public void testUpdateMedia() { when(Config.mediaService.update(any(JpaMedia.class))).thenReturn(media); Response response = mediaServiceRest.updateMedia(media, Config.authenticatedUser); assertEquals(Response.Status.OK.getStatusCode(), response.getStatus()); }
@Override public Response updateMedia(final JpaMedia media, final AuthenticatedUser aUser) { LOGGER.info("updateMedia {} by user {}", media, aUser.getUser().getId()); return ResponseBuilder.ok(mediaService.update(media)); }
MediaServiceRestImpl implements MediaServiceRest { @Override public Response updateMedia(final JpaMedia media, final AuthenticatedUser aUser) { LOGGER.info("updateMedia {} by user {}", media, aUser.getUser().getId()); return ResponseBuilder.ok(mediaService.update(media)); } }
MediaServiceRestImpl implements MediaServiceRest { @Override public Response updateMedia(final JpaMedia media, final AuthenticatedUser aUser) { LOGGER.info("updateMedia {} by user {}", media, aUser.getUser().getId()); return ResponseBuilder.ok(mediaService.update(media)); }  }
MediaServiceRestImpl implements MediaServiceRest { @Override public Response updateMedia(final JpaMedia media, final AuthenticatedUser aUser) { LOGGER.info("updateMedia {} by user {}", media, aUser.getUser().getId()); return ResponseBuilder.ok(mediaService.update(media)); }  @Override Response createMedia(final List<Attachment> attachments); @Override Response updateMedia(final JpaMedia media, final AuthenticatedUser aUser); @Override Response removeMedia(final String name, String type, final AuthenticatedUser aUser); @Override Response getMedia(final Long id, final String mediaName, final AuthenticatedUser aUser); @Override Response getMediaTypes(); }
MediaServiceRestImpl implements MediaServiceRest { @Override public Response updateMedia(final JpaMedia media, final AuthenticatedUser aUser) { LOGGER.info("updateMedia {} by user {}", media, aUser.getUser().getId()); return ResponseBuilder.ok(mediaService.update(media)); }  @Override Response createMedia(final List<Attachment> attachments); @Override Response updateMedia(final JpaMedia media, final AuthenticatedUser aUser); @Override Response removeMedia(final String name, String type, final AuthenticatedUser aUser); @Override Response getMedia(final Long id, final String mediaName, final AuthenticatedUser aUser); @Override Response getMediaTypes();  }