use of net.rdrei.android.scdl2.ShareIntentResolver in project scdl by passy.
the class ShareIntentResolverTest method testFailWithPlaylistUrl.
@Test(expected = ShareIntentResolver.UnsupportedPlaylistUrlException.class)
public void testFailWithPlaylistUrl() throws ShareIntentResolverException {
ShadowIntent intent = Robolectric.shadowOf(mIntent);
intent.setData(Uri.parse("https://soundcloud.com/revealed-recordings/sets/3lau-paris-simo-feat-bright"));
final ShareIntentResolver resolver = TestHelper.getInjector().getInstance(ShareIntentResolver.class);
resolver.resolvePendingDownload();
}
use of net.rdrei.android.scdl2.ShareIntentResolver in project scdl by passy.
the class ShareIntentResolverTest method testFailWithSuperInvalidUrl.
@Test(expected = ShareIntentResolverException.class)
public void testFailWithSuperInvalidUrl() throws ShareIntentResolverException {
ShadowIntent intent = Robolectric.shadowOf(mIntent);
intent.setData(Uri.parse("//nope"));
final ShareIntentResolver resolver = TestHelper.getInjector().getInstance(ShareIntentResolver.class);
resolver.resolve();
}
use of net.rdrei.android.scdl2.ShareIntentResolver in project scdl by passy.
the class ShareIntentResolverTest method testFailWithNullValue.
@Test(expected = ShareIntentResolverException.class)
public void testFailWithNullValue() throws ShareIntentResolverException {
final ShareIntentResolver resolver = TestHelper.getInjector().getInstance(ShareIntentResolver.class);
resolver.resolve();
}
use of net.rdrei.android.scdl2.ShareIntentResolver in project scdl by passy.
the class ShareIntentResolverTest method testFailWithInvalidUrl.
@Test(expected = ShareIntentResolverException.class)
public void testFailWithInvalidUrl() throws ShareIntentResolverException {
ShadowIntent intent = Robolectric.shadowOf(mIntent);
intent.setData(Uri.parse("https://yoosello.de/"));
final ShareIntentResolver resolver = TestHelper.getInjector().getInstance(ShareIntentResolver.class);
resolver.resolve();
}
Aggregations