aboutsummaryrefslogtreecommitdiffstats
path: root/it/it-tests/src
diff options
context:
space:
mode:
authorDaniel Schwarz <daniel.schwarz@sonarsource.com>2017-05-12 10:56:57 +0200
committerDaniel Schwarz <bartfastiel@users.noreply.github.com>2017-06-01 13:39:49 +0200
commitc9e073de799a5af40489ceae600e0c0f895e8c30 (patch)
tree2879f6a948e32abbc500994a8aea692478911293 /it/it-tests/src
parentb9ae8ac31f728a4cbe10f8ded4f3a190b1c4e637 (diff)
downloadsonarqube-c9e073de799a5af40489ceae600e0c0f895e8c30.tar.gz
sonarqube-c9e073de799a5af40489ceae600e0c0f895e8c30.zip
integration tests: avoid false positive, if tests are executed very fast
Diffstat (limited to 'it/it-tests/src')
-rw-r--r--it/it-tests/src/test/java/it/issue/IssueWorkflowTest.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/it/it-tests/src/test/java/it/issue/IssueWorkflowTest.java b/it/it-tests/src/test/java/it/issue/IssueWorkflowTest.java
index f6b987890ae..a0e366792cf 100644
--- a/it/it-tests/src/test/java/it/issue/IssueWorkflowTest.java
+++ b/it/it-tests/src/test/java/it/issue/IssueWorkflowTest.java
@@ -161,8 +161,6 @@ public class IssueWorkflowTest extends AbstractIssueTest {
assertThat(resolvedIssue.getStatus()).isEqualTo("RESOLVED");
assertThat(resolvedIssue.getResolution()).isEqualTo("FIXED");
assertThat(resolvedIssue.getCreationDate()).isEqualTo(issue.getCreationDate());
- assertThat(toDatetime(resolvedIssue.getUpdateDate())).isAfter(toDatetime(resolvedIssue.getCreationDate()));
- assertThat(toDatetime(resolvedIssue.getUpdateDate())).isAfter(toDatetime(issue.getUpdateDate()));
// re-execute scan, with the same Q profile -> the issue has not been fixed
analysisWithIssues.run();
@@ -223,7 +221,6 @@ public class IssueWorkflowTest extends AbstractIssueTest {
assertThat(reopened.getStatus()).isEqualTo("REOPENED");
assertThat(reopened.hasResolution()).isFalse();
assertThat(reopened.getCreationDate()).isEqualTo(resolved.getCreationDate());
- assertThat(toDatetime(reopened.getUpdateDate())).isAfterOrEqualsTo(toDatetime(resolved.getUpdateDate()));
}
/**
@@ -247,7 +244,7 @@ public class IssueWorkflowTest extends AbstractIssueTest {
assertThat(reloaded.getStatus()).isEqualTo("RESOLVED");
assertThat(reloaded.getResolution()).isEqualTo("FALSE-POSITIVE");
assertThat(reloaded.getCreationDate()).isEqualTo(issue.getCreationDate());
- // TODO check that update date has not been changed
+ assertThat(toDatetime(reloaded.getUpdateDate())).isEqualTo(toDatetime(falsePositive.getUpdateDate()));
}
/**