aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2010-12-21 15:29:42 +0000
committersimonbrandhof <simon.brandhof@gmail.com>2010-12-21 15:29:42 +0000
commitd538be810f6d83fbbb4b2e4de2a4da08e6919576 (patch)
treec253ed2d14c1cc8b0878871719d1ab16001fc030 /tests
parentdd569d0a9c492f58ae55566ace46adf420d40284 (diff)
downloadsonarqube-d538be810f6d83fbbb4b2e4de2a4da08e6919576.tar.gz
sonarqube-d538be810f6d83fbbb4b2e4de2a4da08e6919576.zip
fix IT
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/tests/src/test/java/org/sonar/tests/integration/ViolationsTimeMachineIT.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/integration/tests/src/test/java/org/sonar/tests/integration/ViolationsTimeMachineIT.java b/tests/integration/tests/src/test/java/org/sonar/tests/integration/ViolationsTimeMachineIT.java
index 3d12a1612ca..89354e75ead 100644
--- a/tests/integration/tests/src/test/java/org/sonar/tests/integration/ViolationsTimeMachineIT.java
+++ b/tests/integration/tests/src/test/java/org/sonar/tests/integration/ViolationsTimeMachineIT.java
@@ -73,16 +73,13 @@ public class ViolationsTimeMachineIT {
@Test
public void unknownMetrics() {
TimeMachine timemachine = sonar.find(TimeMachineQuery.createForMetrics(PROJECT, "notfound"));
- assertThat(timemachine.getCells().length, is(2));
- for (TimeMachineCell cell : timemachine.getCells()) {
- assertThat(cell.getValues()[0], nullValue());
- }
+ assertThat(timemachine.getCells().length, is(0));
timemachine = sonar.find(TimeMachineQuery.createForMetrics(PROJECT, CoreMetrics.LINES_KEY, "notfound"));
assertThat(timemachine.getCells().length, is(2));
for (TimeMachineCell cell : timemachine.getCells()) {
+ assertThat(cell.getValues().length, is(1));
assertThat(cell.getValues()[0], is(Double.class));
- assertThat(cell.getValues()[1], nullValue());
}
timemachine = sonar.find(TimeMachineQuery.createForMetrics(PROJECT));