Package com.github.hakko.musiccabinet.ws.lastfm

Examples of com.github.hakko.musiccabinet.ws.lastfm.TagUpdateClient


  public void updatesWithinThresholdsAreIgnored() throws ApplicationException {
    ArtistTopTagsDao artistTopTagsDao = mock(ArtistTopTagsDao.class);
    tagUpdateService.setArtistTopTagsDao(artistTopTagsDao);

    setClientResponse(responseOK);
    TagUpdateClient tagUpdateClient = tagUpdateService.tagUpdateClient;

    WebserviceHistoryService historyService = mock(WebserviceHistoryService.class);
    tagUpdateService.setWebserviceHistoryService(historyService);

    tagUpdateService.register(artist1Addition);
View Full Code Here


    verify(tagUpdateClient, times(1)).updateTag(artist2Removal);
    verify(tagUpdateClient, times(0)).updateTag(artist3Addition);
  }
 
  private void setClientResponse(WSResponse response) throws ApplicationException {
    TagUpdateClient tagUpdateClient = mock(TagUpdateClient.class);
    when(tagUpdateClient.updateTag(any(ArtistUserTag.class))).thenReturn(response);
    tagUpdateService.setTagUpdateClient(tagUpdateClient);
  }
View Full Code Here

TOP

Related Classes of com.github.hakko.musiccabinet.ws.lastfm.TagUpdateClient

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.