Search in sources :

Example 6 with PendingDownload

use of net.rdrei.android.scdl2.api.PendingDownload 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);
}
Also used : PendingDownload(net.rdrei.android.scdl2.api.PendingDownload) AbstractMediaStateLoaderTask(net.rdrei.android.scdl2.ui.AbstractMediaStateLoaderTask) Test(org.junit.Test)

Aggregations

PendingDownload (net.rdrei.android.scdl2.api.PendingDownload)6 Test (org.junit.Test)5 ShareIntentResolver (net.rdrei.android.scdl2.ShareIntentResolver)3 ShadowIntent (org.robolectric.shadows.ShadowIntent)3 AbstractMediaStateLoaderTask (net.rdrei.android.scdl2.ui.AbstractMediaStateLoaderTask)2 Matcher (java.util.regex.Matcher)1