From 8d56927558c0a89dbcbf8817022b0340e97a173e Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Fri, 13 Sep 2013 17:53:52 +0200 Subject: [PATCH] Fix unit test on Java 7 --- .../sonar/core/notification/db/NotificationQueueDaoTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } -- 2.39.5