]> source.dussan.org Git - sonarqube.git/commitdiff
Fix unit test
authorJulien Lancelot <julien.lancelot@gmail.com>
Thu, 21 Feb 2013 14:59:37 +0000 (15:59 +0100)
committerJulien Lancelot <julien.lancelot@gmail.com>
Thu, 21 Feb 2013 14:59:37 +0000 (15:59 +0100)
sonar-server/src/test/java/org/sonar/server/plugins/PluginDownloaderTest.java

index d8be3d54397e9bd15534afbab0506fccca7a4f7b..bb51977f1f2883634337c6065c9c40fd6236d9c2 100644 (file)
@@ -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);