Search in sources :

Example 1 with ReleaseClient

use of com.github.hakko.musiccabinet.ws.musicbrainz.ReleaseClient in project musiccabinet by hakko.

the class MusicBrainzServiceTest method getReleaseClient.

private ReleaseClient getReleaseClient() throws ApplicationException {
    ReleaseClient client = Mockito.mock(ReleaseClient.class);
    Mockito.when(client.get(artistName, mbid, 0)).thenReturn(new ResourceUtil("musicbrainz/xml/release-col.xml").getContent());
    return client;
}
Also used : ResourceUtil(com.github.hakko.musiccabinet.util.ResourceUtil) ReleaseClient(com.github.hakko.musiccabinet.ws.musicbrainz.ReleaseClient)

Aggregations

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