Examples of ScrobbledTracksClient


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

    Assert.assertNotNull(scrobbledTracksService.lastFmSettingsService);
  }
 
  @Test
  public void updatesScrobbledTracks() throws IOException, ApplicationException {
    ScrobbledTracksClient scrobbledTracksClient = getScrobbledTracksClient();
    scrobbledTracksService.setScrobbledTracksClient(scrobbledTracksClient);
    scrobbledTracksService.updateSearchIndex();
  }
View Full Code Here

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

    String httpResponse = new ResourceUtil(SCROBBLED_TRACKS).getContent();
    when(httpClient.execute(Mockito.any(HttpUriRequest.class),
        Mockito.any(ResponseHandler.class))).thenReturn(httpResponse);

    // create a client out of the components above
    ScrobbledTracksClient stClient = new ScrobbledTracksClient();
    stClient.setWebserviceHistoryService(historyService);
    stClient.setHttpClient(httpClient);

    // create a throttling service that allows calls at any rate
    ThrottleService throttleService = mock(ThrottleService.class);
    stClient.setThrottleService(throttleService);

    return stClient;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.