Skip to content

Commit

Permalink
Get the tests fixed up for the exclude list
Browse files Browse the repository at this point in the history
  • Loading branch information
Bradlee Speice committed Dec 29, 2014
1 parent ef314ef commit 3ce6cad
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
Expand Up @@ -25,7 +25,9 @@
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;

Expand Down Expand Up @@ -235,6 +237,11 @@ Collection<Installer> provideInstallers() {
return new InstallManager().getInstallers().values();
}

@Provides
List<String> excludeList() {
return new ArrayList<>();
}

void setConnectivityManager(ConnectivityManager manager) {
this.manager = manager;
}
Expand All @@ -245,8 +252,8 @@ void setPrefs(DownloadPrefs prefs) {

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

Expand Down
Expand Up @@ -189,10 +189,15 @@ void setPrefs(DownloadPrefs prefs) {
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);
}
}
Expand Down

0 comments on commit 3ce6cad

Please sign in to comment.