summaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@gmail.com>2013-02-21 15:59:37 +0100
committerJulien Lancelot <julien.lancelot@gmail.com>2013-02-21 15:59:37 +0100
commita7cdafeb6461b57d30b57a583f17dad5895461ff (patch)
treeeb5078f2f09d03373df3a9f5a1d6b4ce16eed857 /sonar-server
parenta195ff4ce53d4894f4e97d7c7bfeaf37ea382286 (diff)
downloadsonarqube-a7cdafeb6461b57d30b57a583f17dad5895461ff.tar.gz
sonarqube-a7cdafeb6461b57d30b57a583f17dad5895461ff.zip
Fix unit test
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/test/java/org/sonar/server/plugins/PluginDownloaderTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-server/src/test/java/org/sonar/server/plugins/PluginDownloaderTest.java b/sonar-server/src/test/java/org/sonar/server/plugins/PluginDownloaderTest.java
index d8be3d54397..bb51977f1f2 100644
--- a/sonar-server/src/test/java/org/sonar/server/plugins/PluginDownloaderTest.java
+++ b/sonar-server/src/test/java/org/sonar/server/plugins/PluginDownloaderTest.java
@@ -39,6 +39,7 @@ import java.net.URI;
import static com.google.common.collect.Lists.newArrayList;
import static org.fest.assertions.Assertions.assertThat;
import static org.mockito.Matchers.any;
+import static org.mockito.Matchers.anyBoolean;
import static org.mockito.Matchers.argThat;
import static org.mockito.Mockito.doThrow;
import static org.mockito.Mockito.mock;
@@ -62,7 +63,7 @@ public class PluginDownloaderTest {
public void before() throws IOException {
updateCenterMatrixFactory = mock(UpdateCenterMatrixFactory.class);
updateCenter = mock(UpdateCenter.class);
- when(updateCenterMatrixFactory.getUpdateCenter(false)).thenReturn(updateCenter);
+ when(updateCenterMatrixFactory.getUpdateCenter(anyBoolean())).thenReturn(updateCenter);
httpDownloader = mock(HttpDownloader.class);