use of net.rdrei.android.scdl2.ui.AbstractMediaStateLoaderTask in project scdl by passy.
the class AbstractMediaStateLoaderTaskTest method testCallForPlayList.
@Test
public void testCallForPlayList() throws Exception {
final PendingDownload pendingDownload = new PendingDownload("1234", MediaDownloadType.PLAYLIST);
final AbstractMediaStateLoaderTask task = new AbstractMediaStateLoaderTask(mContext, pendingDownload);
task.call();
verify(mPlaylistService).getPlaylist("1234");
verifyZeroInteractions(mTrackService);
}
use of net.rdrei.android.scdl2.ui.AbstractMediaStateLoaderTask in project scdl by passy.
the class AbstractMediaStateLoaderTaskTest method testCallForTrack.
@Test
public void testCallForTrack() throws Exception {
final PendingDownload pendingDownload = new PendingDownload("1234", MediaDownloadType.TRACK);
final AbstractMediaStateLoaderTask task = new AbstractMediaStateLoaderTask(mContext, pendingDownload);
task.call();
verify(mTrackService).getTrack("1234");
verifyZeroInteractions(mPlaylistService);
}
Aggregations