From 00b1b097a7ae744f69f47436f4d764ce8cf4b111 Mon Sep 17 00:00:00 2001 From: Jay Date: Sat, 11 Jan 2020 02:11:06 -0800 Subject: [PATCH] Update BackupTest.kt --- .../test/java/eu/kanade/tachiyomi/data/backup/BackupTest.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/test/java/eu/kanade/tachiyomi/data/backup/BackupTest.kt b/app/src/test/java/eu/kanade/tachiyomi/data/backup/BackupTest.kt index 683d29e07f..7e740c2364 100644 --- a/app/src/test/java/eu/kanade/tachiyomi/data/backup/BackupTest.kt +++ b/app/src/test/java/eu/kanade/tachiyomi/data/backup/BackupTest.kt @@ -203,7 +203,7 @@ class BackupTest { // Restore manga with fetch observable val networkManga = getSingleManga("One Piece") networkManga.description = "This is a description" - `when`(source.fetchMangaDetailsObservable(jsonManga)).thenReturn(Observable.just(networkManga)) + `when`(source.fetchMangaDetails(jsonManga)).thenReturn(Observable.just(networkManga)) GlobalScope.launch { try { @@ -250,7 +250,7 @@ class BackupTest { // Create list val chaptersRemote = ArrayList() (1..10).mapTo(chaptersRemote) { getSingleChapter("Chapter $it") } - `when`(source.fetchChapterListObservable(manga)).thenReturn(Observable.just(chaptersRemote)) + `when`(source.fetchChapterList(manga)).thenReturn(Observable.just(chaptersRemote)) // Call restoreChapterFetchObservable GlobalScope.launch { @@ -396,7 +396,6 @@ class BackupTest { val track = TrackImpl() track.title = manga.title track.manga_id = manga.id!! - track.remote_id = 1 track.sync_id = 1 return track }