mirror of
https://github.com/MinimalBible/MinimalBible
synced 2024-11-21 23:48:18 -05:00
Get the tests fixed up for the exclude list
This commit is contained in:
parent
ef314efa2f
commit
3ce6cad2c2
@ -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<String> 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<Installer> installers) {
|
||||
return new RefreshManager(installers,
|
||||
RefreshManager refreshManager(Collection<Installer> installers, List<String> excludes) {
|
||||
return new RefreshManager(installers, excludes,
|
||||
prefs, manager);
|
||||
}
|
||||
|
||||
|
@ -189,10 +189,15 @@ public class RefreshManagerTest implements Injector {
|
||||
this.prefs = prefs;
|
||||
}
|
||||
|
||||
@Provides
|
||||
List<String> excludeList() {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
|
||||
@Provides
|
||||
@Singleton
|
||||
RefreshManager refreshManager(Collection<Installer> installers) {
|
||||
return new RefreshManager(installers,
|
||||
RefreshManager refreshManager(Collection<Installer> installers, List<String> excludes) {
|
||||
return new RefreshManager(installers, excludes,
|
||||
prefs, manager);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user