Search in sources :

Example 1 with ArtistQueryClient

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;
}
Also used : ResourceUtil(com.github.hakko.musiccabinet.util.ResourceUtil) ArtistQueryClient(com.github.hakko.musiccabinet.ws.musicbrainz.ArtistQueryClient)

Aggregations

ResourceUtil (com.github.hakko.musiccabinet.util.ResourceUtil)1 ArtistQueryClient (com.github.hakko.musiccabinet.ws.musicbrainz.ArtistQueryClient)1