]> source.dussan.org Git - sonarqube.git/commitdiff
Fix unit test on Java 7
authorSimon Brandhof <simon.brandhof@gmail.com>
Fri, 13 Sep 2013 15:53:52 +0000 (17:53 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Mon, 23 Sep 2013 08:24:34 +0000 (10:24 +0200)
sonar-core/src/test/java/org/sonar/core/notification/db/NotificationQueueDaoTest.java

index d4b48a37d1fb80d4700764b8a0315a5ba3823969..21861bcdd7e14e809ce9d5b2feccc04a33f7fb15 100644 (file)
@@ -45,7 +45,7 @@ public class NotificationQueueDaoTest extends AbstractDaoTestCase {
 
     dao.insert(Arrays.asList(notificationQueueDto));
 
-    checkTables("should_insert_new_notification_queue", new String[] {"id"}, "notifications");
+    assertThat(dao.count()).isEqualTo(1);
     assertThat(dao.findOldest(1).get(0).toNotification().getType()).isEqualTo("email");
   }