diff options
author | Eric Hartmann <hartmann.eric@gmail.com> | 2018-01-30 12:34:11 +0100 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2018-02-08 13:41:00 +0100 |
commit | 4a0df7b8f2c14211ee282b8d1335efd09375eba1 (patch) | |
tree | 088d69050780230df21f419473a4a5c76e7a5e9a /tests | |
parent | 213d3957ef79ff787d2485e72afe1927ad1c50b9 (diff) | |
download | sonarqube-4a0df7b8f2c14211ee282b8d1335efd09375eba1.tar.gz sonarqube-4a0df7b8f2c14211ee282b8d1335efd09375eba1.zip |
SONAR-10313 Keep the order of issues on Search
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/test/java/org/sonarqube/tests/issue/IssueCreationDatePluginChangedTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/src/test/java/org/sonarqube/tests/issue/IssueCreationDatePluginChangedTest.java b/tests/src/test/java/org/sonarqube/tests/issue/IssueCreationDatePluginChangedTest.java index 6ad7158a0f6..af2fbd1e1a6 100644 --- a/tests/src/test/java/org/sonarqube/tests/issue/IssueCreationDatePluginChangedTest.java +++ b/tests/src/test/java/org/sonarqube/tests/issue/IssueCreationDatePluginChangedTest.java @@ -23,12 +23,10 @@ import com.google.common.collect.ImmutableList; import com.sonar.orchestrator.Orchestrator; import com.sonar.orchestrator.build.SonarScanner; import java.io.File; -import java.io.IOException; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.List; -import javax.mail.MessagingException; import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; @@ -150,7 +148,9 @@ public class IssueCreationDatePluginChangedTest { // New analysis that should raise 2 new issues that will be backdated ORCHESTRATOR.executeBuild(scanner); - issues = getIssues(issueQuery().components("creation-date-sample:src/main/xoo/sample/Sample.xoo")); + issues = getIssues(issueQuery() + .components("creation-date-sample:src/main/xoo/sample/Sample.xoo") + .sort("FILE_LINE")); assertThat(issues) .extracting(Issue::line, Issue::creationDate) .containsExactly(tuple(1, dateTimeParse("2005-01-01T00:00:00+0000")), |