Search in sources :

Example 6 with LastFmGroup

use of com.github.hakko.musiccabinet.domain.model.library.LastFmGroup in project musiccabinet by hakko.

the class GroupWeeklyArtistChartServiceTest method canInvokeService.

@Test
public void canInvokeService() throws ApplicationException {
    GroupWeeklyArtistChart artistChart = service.getWeeklyArtistChart(new LastFmGroup("group name"));
    Assert.assertNotNull(artistChart);
    Assert.assertEquals(0, artistChart.getArtistPlayCounts().size());
}
Also used : LastFmGroup(com.github.hakko.musiccabinet.domain.model.library.LastFmGroup) GroupWeeklyArtistChart(com.github.hakko.musiccabinet.domain.model.aggr.GroupWeeklyArtistChart) Test(org.junit.Test)

Aggregations

LastFmGroup (com.github.hakko.musiccabinet.domain.model.library.LastFmGroup)6 Test (org.junit.Test)4 WebserviceInvocation (com.github.hakko.musiccabinet.domain.model.library.WebserviceInvocation)3 GroupWeeklyArtistChart (com.github.hakko.musiccabinet.domain.model.aggr.GroupWeeklyArtistChart)2 Calltype (com.github.hakko.musiccabinet.domain.model.library.WebserviceInvocation.Calltype)2 ApplicationException (com.github.hakko.musiccabinet.exception.ApplicationException)2 GroupWeeklyArtistChartParser (com.github.hakko.musiccabinet.parser.lastfm.GroupWeeklyArtistChartParser)1 GroupWeeklyArtistChartParserImpl (com.github.hakko.musiccabinet.parser.lastfm.GroupWeeklyArtistChartParserImpl)1 WebserviceHistoryService (com.github.hakko.musiccabinet.service.lastfm.WebserviceHistoryService)1 StringUtil (com.github.hakko.musiccabinet.util.StringUtil)1 WSResponse (com.github.hakko.musiccabinet.ws.lastfm.WSResponse)1 ArrayList (java.util.ArrayList)1 NameValuePair (org.apache.http.NameValuePair)1 SqlParameter (org.springframework.jdbc.core.SqlParameter)1 BatchSqlUpdate (org.springframework.jdbc.object.BatchSqlUpdate)1