use of com.github.hakko.musiccabinet.ws.musicbrainz.ArtistQueryClient in project musiccabinet by hakko.
the class MusicBrainzServiceTest method getArtistQueryClient.
private ArtistQueryClient getArtistQueryClient() throws ApplicationException {
ArtistQueryClient client = Mockito.mock(ArtistQueryClient.class);
Mockito.when(client.get(artistName)).thenReturn(new ResourceUtil("musicbrainz/xml/artistQuery.xml").getContent());
return client;
}
Aggregations