aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch/src/test
diff options
context:
space:
mode:
authorFabrice Bellingard <bellingard@gmail.com>2011-04-21 16:56:21 +0200
committerFabrice Bellingard <bellingard@gmail.com>2011-04-21 18:40:48 +0200
commite8bf534ec680e583b0e7683c92f1be31ab66a74e (patch)
tree69a2281fa2f3b036e945c1b27d41c9afd2043a75 /sonar-batch/src/test
parent5c66787f6e31f2931f28b78d3eb056503cdfe57a (diff)
downloadsonarqube-e8bf534ec680e583b0e7683c92f1be31ab66a74e.tar.gz
sonarqube-e8bf534ec680e583b0e7683c92f1be31ab66a74e.zip
SONAR-2380 The "violations" web service API must not return
"false-positive" violation Also modified the batch side ViolationQuery class that I created so that they have the same API.
Diffstat (limited to 'sonar-batch/src/test')
-rw-r--r--sonar-batch/src/test/java/org/sonar/batch/index/DefaultIndexTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-batch/src/test/java/org/sonar/batch/index/DefaultIndexTest.java b/sonar-batch/src/test/java/org/sonar/batch/index/DefaultIndexTest.java
index 48946226df4..0a5bb5ccc7a 100644
--- a/sonar-batch/src/test/java/org/sonar/batch/index/DefaultIndexTest.java
+++ b/sonar-batch/src/test/java/org/sonar/batch/index/DefaultIndexTest.java
@@ -227,7 +227,7 @@ public class DefaultIndexTest {
violation3.setSwitchedOff(true);
index.addViolation(violation3);
- assertThat(index.getViolations(ViolationQuery.create().forResource(file).ignoreSwitchedOff(false)).size(), is(3));
+ assertThat(index.getViolations(ViolationQuery.create().forResource(file).setSwitchedOff(true)).size(), is(2));
}
@Test(expected = IllegalArgumentException.class)