From: Simon Brandhof Date: Fri, 13 Sep 2013 15:53:52 +0000 (+0200) Subject: Fix unit test on Java 7 X-Git-Tag: 3.7.1~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=beb5370ba865599fb31704f124e860d19632dc8c;p=sonarqube.git Fix unit test on Java 7 --- diff --git a/sonar-core/src/test/java/org/sonar/core/notification/db/NotificationQueueDaoTest.java b/sonar-core/src/test/java/org/sonar/core/notification/db/NotificationQueueDaoTest.java index d4b48a37d1f..21861bcdd7e 100644 --- a/sonar-core/src/test/java/org/sonar/core/notification/db/NotificationQueueDaoTest.java +++ b/sonar-core/src/test/java/org/sonar/core/notification/db/NotificationQueueDaoTest.java @@ -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"); }