]> source.dussan.org Git - sonarqube.git/commitdiff
fix IT
authorsimonbrandhof <simon.brandhof@gmail.com>
Tue, 21 Dec 2010 15:29:42 +0000 (15:29 +0000)
committersimonbrandhof <simon.brandhof@gmail.com>
Tue, 21 Dec 2010 15:29:42 +0000 (15:29 +0000)
tests/integration/tests/src/test/java/org/sonar/tests/integration/ViolationsTimeMachineIT.java

index 3d12a1612ca0d7e6a4158e476af0b4129bc174cf..89354e75ead2ba9f915fad274c61e953ae32b648 100644 (file)
@@ -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));