From 0451d9443f10f12f308b19cdfcbae6ac99c2e2b4 Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Mon, 1 Sep 2014 16:17:43 -0400 Subject: [PATCH] Remove a useless test Because I can't remove a book without restarting the application (no idea why this is) it's impossible to test this. --- .../manager/InstalledManagerTest.java | 31 ------------------- 1 file changed, 31 deletions(-) diff --git a/app/src/androidTest/java/org/bspeice/minimalbible/test/activity/downloader/manager/InstalledManagerTest.java b/app/src/androidTest/java/org/bspeice/minimalbible/test/activity/downloader/manager/InstalledManagerTest.java index c91df48..0e42f29 100644 --- a/app/src/androidTest/java/org/bspeice/minimalbible/test/activity/downloader/manager/InstalledManagerTest.java +++ b/app/src/androidTest/java/org/bspeice/minimalbible/test/activity/downloader/manager/InstalledManagerTest.java @@ -10,8 +10,6 @@ import org.bspeice.minimalbible.activity.downloader.manager.InstalledManager; import org.bspeice.minimalbible.activity.downloader.manager.RefreshManager; import org.crosswire.jsword.book.Book; import org.crosswire.jsword.book.Books; -import org.crosswire.jsword.book.BooksEvent; -import org.crosswire.jsword.book.BooksListener; import org.crosswire.jsword.book.install.InstallManager; import org.crosswire.jsword.book.install.Installer; @@ -123,33 +121,4 @@ public class InstalledManagerTest extends TestCase implements Injector { }); assertFalse(foundMismatch.get()); } - - /** - * Test that we can remove a book. Currently this test is neutered until I can fix - * issues with @link{getInstalledBooks}. - * @throws Exception - */ - public void testRemoveBook() throws Exception { - final Book book = getInstalledBooks().toBlocking().first(); - - final AtomicBoolean didRemove = new AtomicBoolean(false); - - installedBooks.addBooksListener(new BooksListener() { - @Override - public void bookAdded(BooksEvent ev) { - - } - @Override - public void bookRemoved(BooksEvent ev) { - if (ev.getBook().equals(book)) { - didRemove.set(true); - } - } - }); - - iM.removeBook(book); - if (!didRemove.get()) { - Log.w("testRemoveBook", "Could not remove book, not necessarily fatal."); - } - } } \ No newline at end of file