]> source.dussan.org Git - sonarqube.git/commitdiff
Try to fix some false positive failure on a unit test
authorJulien HENRY <julien.henry@sonarsource.com>
Fri, 20 Feb 2015 16:50:49 +0000 (17:50 +0100)
committerJulien HENRY <julien.henry@sonarsource.com>
Fri, 20 Feb 2015 16:51:06 +0000 (17:51 +0100)
server/sonar-server/src/test/java/org/sonar/server/issue/InternalRubyIssueServiceTest.java

index 67be6cce5ad4183a1057b943758314cb3456d8fa..b434b978b7991d5e6697b18b979a403d538f06df 100644 (file)
@@ -578,7 +578,8 @@ public class InternalRubyIssueServiceTest {
     overrideProps.put("pageSize", 20);
     overrideProps.put("pageIndex", 2);
 
-    when(issueQueryService.createFromMap(eq(overrideProps))).thenReturn(IssueQuery.builder().build());
+    IssueQuery query = IssueQuery.builder().build();
+    when(issueQueryService.createFromMap(eq(overrideProps))).thenReturn(query);
 
     service.execute(10L, overrideProps);