Get the tests fixed up for the exclude list

parser-fixes
Bradlee Speice 2014-12-29 16:53:48 -05:00
parent ef314efa2f
commit 3ce6cad2c2
2 changed files with 16 additions and 4 deletions

View File

@ -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);
}

View File

@ -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);
}
}