From f5cc6e49109e95ed65e4f2c530c4a9c5c7a4841a Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Fri, 20 Feb 2015 17:50:49 +0100 Subject: [PATCH] Try to fix some false positive failure on a unit test --- .../org/sonar/server/issue/InternalRubyIssueServiceTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/sonar-server/src/test/java/org/sonar/server/issue/InternalRubyIssueServiceTest.java b/server/sonar-server/src/test/java/org/sonar/server/issue/InternalRubyIssueServiceTest.java index 67be6cce5ad..b434b978b79 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/issue/InternalRubyIssueServiceTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/issue/InternalRubyIssueServiceTest.java @@ -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); -- 2.39.5