DownloadServiceImpl implements DownloadService { public Observable<Boolean> deleteDownload(final FireBookDetails bookToDelete) { return Observable.defer(new Func0<Observable<Boolean>>() { @Override public Observable<Boolean> call() { return Observable.just(deleteLocalBook(bookToDelete)); } }); } DownloadServiceImpl(FirebaseStorage firebaseStorageRef); @Override Observable<DownloadProgressItem> downloadFile(final FireBookDetails book); Observable<Boolean> deleteDownload(final FireBookDetails bookToDelete); static final String TAG; }
@Test public void testDeleteDownload() throws Exception { }