@Test public void mediaAnnotation_star() throws Exception { StringWriter sw = new StringWriter(); HttpServletRequest request = mock(HttpServletRequest.class); when(request.getParameterValues("id")).thenReturn(new String[]{ ARTIST_ID + "123", ALBUM_ID + "456"}); HttpServletResponse response = mock(HttpServletResponse.class); when(response.getWriter()).thenReturn(new PrintWriter(sw)); mediaAnnotationController.star(request, response); assertXMLEqual(new ResourceUtil(STAR).getContent(), sw.getBuffer().toString()); }
public void star(HttpServletRequest request, HttpServletResponse response) throws Exception { starOrUnstar(request, response, true); }
RESTMediaAnnotationController extends RESTAbstractController { public void star(HttpServletRequest request, HttpServletResponse response) throws Exception { starOrUnstar(request, response, true); } }
RESTMediaAnnotationController extends RESTAbstractController { public void star(HttpServletRequest request, HttpServletResponse response) throws Exception { starOrUnstar(request, response, true); }  }
RESTMediaAnnotationController extends RESTAbstractController { public void star(HttpServletRequest request, HttpServletResponse response) throws Exception { starOrUnstar(request, response, true); }  void setRating(HttpServletRequest request, HttpServletResponse response); void star(HttpServletRequest request, HttpServletResponse response); void unstar(HttpServletRequest request, HttpServletResponse response); void getStarred(HttpServletRequest request, HttpServletResponse response); void getStarred2(HttpServletRequest request, HttpServletResponse response); void scrobble(HttpServletRequest request, HttpServletResponse response); void setRestBrowseController(RESTBrowseController restBrowseController); void setSettingsService(SettingsService settingsService); void setSecurityService(SecurityService securityService); void setStarService(StarService starService); void setHomeController(HomeController homeController); void setLibraryBrowserService(LibraryBrowserService libraryBrowserService); void setMediaFileService(MediaFileService mediaFileService); void setAudioScrobblerService(AudioScrobblerService audioScrobblerService); }
RESTMediaAnnotationController extends RESTAbstractController { public void star(HttpServletRequest request, HttpServletResponse response) throws Exception { starOrUnstar(request, response, true); }  void setRating(HttpServletRequest request, HttpServletResponse response); void star(HttpServletRequest request, HttpServletResponse response); void unstar(HttpServletRequest request, HttpServletResponse response); void getStarred(HttpServletRequest request, HttpServletResponse response); void getStarred2(HttpServletRequest request, HttpServletResponse response); void scrobble(HttpServletRequest request, HttpServletResponse response); void setRestBrowseController(RESTBrowseController restBrowseController); void setSettingsService(SettingsService settingsService); void setSecurityService(SecurityService securityService); void setStarService(StarService starService); void setHomeController(HomeController homeController); void setLibraryBrowserService(LibraryBrowserService libraryBrowserService); void setMediaFileService(MediaFileService mediaFileService); void setAudioScrobblerService(AudioScrobblerService audioScrobblerService);  }