diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2015-02-20 17:50:49 +0100 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2015-02-20 17:51:06 +0100 |
commit | f5cc6e49109e95ed65e4f2c530c4a9c5c7a4841a (patch) | |
tree | 07fe4ff27dd90f3462f67f22f99e51f75a870fa3 /server | |
parent | 821acf6e77cace0bb945a714587cbf3b1e09df6b (diff) | |
download | sonarqube-f5cc6e49109e95ed65e4f2c530c4a9c5c7a4841a.tar.gz sonarqube-f5cc6e49109e95ed65e4f2c530c4a9c5c7a4841a.zip |
Try to fix some false positive failure on a unit test
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-server/src/test/java/org/sonar/server/issue/InternalRubyIssueServiceTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
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); |