diff --git a/app-test/src/test/java/org/bspeice/minimalbible/test/activity/downloader/manager/BookManagerTest.java b/app-test/src/test/java/org/bspeice/minimalbible/test/activity/downloader/manager/BookManagerTest.java index 16b27a6..667bc05 100644 --- a/app-test/src/test/java/org/bspeice/minimalbible/test/activity/downloader/manager/BookManagerTest.java +++ b/app-test/src/test/java/org/bspeice/minimalbible/test/activity/downloader/manager/BookManagerTest.java @@ -25,7 +25,9 @@ import org.junit.Ignore; import org.junit.Test; import org.mockito.Mockito; +import java.util.ArrayList; import java.util.Collection; +import java.util.List; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicBoolean; @@ -235,6 +237,11 @@ public class BookManagerTest implements Injector { return new InstallManager().getInstallers().values(); } + @Provides + List excludeList() { + return new ArrayList<>(); + } + void setConnectivityManager(ConnectivityManager manager) { this.manager = manager; } @@ -245,8 +252,8 @@ public class BookManagerTest implements Injector { @Provides @Singleton - RefreshManager refreshManager(Collection installers) { - return new RefreshManager(installers, + RefreshManager refreshManager(Collection installers, List excludes) { + return new RefreshManager(installers, excludes, prefs, manager); } diff --git a/app-test/src/test/java/org/bspeice/minimalbible/test/activity/downloader/manager/RefreshManagerTest.java b/app-test/src/test/java/org/bspeice/minimalbible/test/activity/downloader/manager/RefreshManagerTest.java index 631584d..1f3b60f 100644 --- a/app-test/src/test/java/org/bspeice/minimalbible/test/activity/downloader/manager/RefreshManagerTest.java +++ b/app-test/src/test/java/org/bspeice/minimalbible/test/activity/downloader/manager/RefreshManagerTest.java @@ -189,10 +189,15 @@ public class RefreshManagerTest implements Injector { this.prefs = prefs; } + @Provides + List excludeList() { + return new ArrayList<>(); + } + @Provides @Singleton - RefreshManager refreshManager(Collection installers) { - return new RefreshManager(installers, + RefreshManager refreshManager(Collection installers, List excludes) { + return new RefreshManager(installers, excludes, prefs, manager); } }