aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch/src
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2015-08-17 14:36:06 +0200
committerDuarte Meneses <duarte.meneses@sonarsource.com>2015-08-18 09:36:10 +0200
commit1fd988439a81be12b536a01d0080db18026f54f9 (patch)
tree206f7c4ea347221e278b027e0a99623da453bec2 /sonar-batch/src
parent2a5eea17c29c46566a13f84eead54b202a9bae83 (diff)
downloadsonarqube-1fd988439a81be12b536a01d0080db18026f54f9.tar.gz
sonarqube-1fd988439a81be12b536a01d0080db18026f54f9.zip
Adjust expected results due to changes in Xoo plugin
Diffstat (limited to 'sonar-batch/src')
-rw-r--r--sonar-batch/src/test/java/org/sonar/batch/mediumtest/issuesmode/IssueModeAndReportsMediumTest.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/sonar-batch/src/test/java/org/sonar/batch/mediumtest/issuesmode/IssueModeAndReportsMediumTest.java b/sonar-batch/src/test/java/org/sonar/batch/mediumtest/issuesmode/IssueModeAndReportsMediumTest.java
index ec5c630ab8b..83b5c18433a 100644
--- a/sonar-batch/src/test/java/org/sonar/batch/mediumtest/issuesmode/IssueModeAndReportsMediumTest.java
+++ b/sonar-batch/src/test/java/org/sonar/batch/mediumtest/issuesmode/IssueModeAndReportsMediumTest.java
@@ -104,7 +104,7 @@ public class IssueModeAndReportsMediumTest {
.setChecksum(DigestUtils.md5Hex("dontexist"))
.setStatus("OPEN")
.build())
- // Existing issue on project that is no more detected
+ // Existing issue on project that is still detected
.mockServerIssue(ServerIssue.newBuilder().setKey("resolved-on-project")
.setModuleKey("sample")
.setRuleRepository("xoo")
@@ -156,7 +156,7 @@ public class IssueModeAndReportsMediumTest {
int openIssues = 0;
int resolvedIssue = 0;
for (Issue issue : result.trackedIssues()) {
- System.out.println(issue.message() + " " + issue.key() + " " + issue.ruleKey());
+ System.out.println(issue.message() + " " + issue.key() + " " + issue.ruleKey() + " " + issue.isNew() + " " + issue.resolution() + " " + issue.componentKey() + " " + issue.line());
if (issue.isNew()) {
newIssues++;
} else if (issue.resolution() != null) {
@@ -165,9 +165,10 @@ public class IssueModeAndReportsMediumTest {
openIssues++;
}
}
+ System.out.println("new: " + newIssues + " open: " + openIssues + " resolved " + resolvedIssue);
assertThat(newIssues).isEqualTo(16);
- assertThat(openIssues).isEqualTo(2);
- assertThat(resolvedIssue).isEqualTo(2);
+ assertThat(openIssues).isEqualTo(3);
+ assertThat(resolvedIssue).isEqualTo(1);
}
@Test
@@ -191,7 +192,7 @@ public class IssueModeAndReportsMediumTest {
.property("sonar.xoo.enablePostJob", "true")
.start();
- assertThat(logTester.logs()).contains("Resolved issues: 2", "Open issues: 18");
+ assertThat(logTester.logs()).contains("Resolved issues: 1", "Open issues: 19");
}
private String getReportLog() {