From a7cdafeb6461b57d30b57a583f17dad5895461ff Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Thu, 21 Feb 2013 15:59:37 +0100 Subject: [PATCH] Fix unit test --- .../java/org/sonar/server/plugins/PluginDownloaderTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.39.5