use of net.rdrei.android.scdl2.api.service.PlaylistService in project scdl by passy.
the class PlaylistServiceTest method testShouldCreateService.
@Test
public void testShouldCreateService() {
final PlaylistService service = mServiceManager.playlistService();
assertThat(service, notNullValue());
}
use of net.rdrei.android.scdl2.api.service.PlaylistService in project scdl by passy.
the class PlaylistServiceTest method shouldResolvePlaylist.
@Test
public void shouldResolvePlaylist() throws APIException {
final PlaylistService service = mServiceManager.playlistService();
final PlaylistEntity entity = service.getPlaylist("13028824");
assertThat(entity.getDescription(), startsWith("At the tail end of 2013, few summer anthems"));
assertThat(entity.getTracks().get(0).getId(), equalTo(116980406l));
}
use of net.rdrei.android.scdl2.api.service.PlaylistService in project scdl by passy.
the class ServiceManager method playlistService.
public PlaylistService playlistService() {
final PlaylistService service = mInjector.getInstance(PlaylistService.class);
setupService(service);
return service;
}
Aggregations