@Test public void testGetMediaTypes() { when(Config.mediaService.getMediaTypes()).thenReturn(MediaType.values()); Response response = mediaServiceRest.getMediaTypes(); assertEquals(Response.Status.OK.getStatusCode(), response.getStatus()); }
@Override public Response getMediaTypes() { LOGGER.debug("getMediaTypes"); return ResponseBuilder.ok(mediaService.getMediaTypes()); }
MediaServiceRestImpl implements MediaServiceRest { @Override public Response getMediaTypes() { LOGGER.debug("getMediaTypes"); return ResponseBuilder.ok(mediaService.getMediaTypes()); } }
MediaServiceRestImpl implements MediaServiceRest { @Override public Response getMediaTypes() { LOGGER.debug("getMediaTypes"); return ResponseBuilder.ok(mediaService.getMediaTypes()); }  }
MediaServiceRestImpl implements MediaServiceRest { @Override public Response getMediaTypes() { LOGGER.debug("getMediaTypes"); return ResponseBuilder.ok(mediaService.getMediaTypes()); }  @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 getMediaTypes() { LOGGER.debug("getMediaTypes"); return ResponseBuilder.ok(mediaService.getMediaTypes()); }  @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();  }