diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2015-06-29 16:28:52 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2015-06-29 16:29:14 +0200 |
commit | 458dcff3616fcfaf5fc0d8d0841468aecc9fcdfa (patch) | |
tree | 3f5d4ecf218ed0bcd42c3a26d1768da04fe5d843 /server/sonar-server | |
parent | 3f36c569964f959692d27457a97326be947103f3 (diff) | |
download | sonarqube-458dcff3616fcfaf5fc0d8d0841468aecc9fcdfa.tar.gz sonarqube-458dcff3616fcfaf5fc0d8d0841468aecc9fcdfa.zip |
Fix test now that date parsing is not lenient
Diffstat (limited to 'server/sonar-server')
-rw-r--r-- | server/sonar-server/src/test/java/org/sonar/server/issue/index/IssueIndexDebtTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-server/src/test/java/org/sonar/server/issue/index/IssueIndexDebtTest.java b/server/sonar-server/src/test/java/org/sonar/server/issue/index/IssueIndexDebtTest.java index d1962713ec3..2515b36fab1 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/issue/index/IssueIndexDebtTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/issue/index/IssueIndexDebtTest.java @@ -249,7 +249,7 @@ public class IssueIndexDebtTest { SearchOptions SearchOptions = fixtureForCreatedAtFacet(); Map<String, Long> createdAt = index.search(newQueryBuilder() - .createdBefore(DateUtils.parseDateTime("2016-01-01T00:00:00+0100")).build(), + .createdBefore(DateUtils.parseDateTime("2016-01-01T00:00:00+0100")).build(), SearchOptions).getFacets().get("createdAt"); assertThat(createdAt).containsOnly( entry("2011-01-01T00:00:00+0000", 10L), @@ -265,7 +265,7 @@ public class IssueIndexDebtTest { IssueDoc issue0 = IssueTesting.newDoc("ISSUE0", file).setFuncCreationDate(DateUtils.parseDateTime("2011-04-25T01:05:13+0100")); IssueDoc issue1 = IssueTesting.newDoc("ISSUE1", file).setFuncCreationDate(DateUtils.parseDateTime("2014-09-01T12:34:56+0100")); - IssueDoc issue2 = IssueTesting.newDoc("ISSUE2", file).setFuncCreationDate(DateUtils.parseDateTime("2014-09-01T23:45:60+0100")); + IssueDoc issue2 = IssueTesting.newDoc("ISSUE2", file).setFuncCreationDate(DateUtils.parseDateTime("2014-09-01T23:46:00+0100")); IssueDoc issue3 = IssueTesting.newDoc("ISSUE3", file).setFuncCreationDate(DateUtils.parseDateTime("2014-09-02T12:34:56+0100")); IssueDoc issue4 = IssueTesting.newDoc("ISSUE4", file).setFuncCreationDate(DateUtils.parseDateTime("2014-09-05T12:34:56+0100")); IssueDoc issue5 = IssueTesting.newDoc("ISSUE5", file).setFuncCreationDate(DateUtils.parseDateTime("2014-09-20T12:34:56+0100")); |