@Test @Transactional @JUnitTemporaryDatabase public void testAcknowledgeUnacknowledgeAllAlarms() { String user = "******"; m_alarmRepo.acknowledgeAll(user, new Date()); int matchingAlarmCount = m_alarmRepo.countMatchingAlarms( AlarmUtil.getOnmsCriteria(new AlarmCriteria(new AcknowledgedByFilter(user)))); assertEquals(1, matchingAlarmCount); m_alarmRepo.unacknowledgeAll(user); matchingAlarmCount = m_alarmRepo.countMatchingAlarms( AlarmUtil.getOnmsCriteria(new AlarmCriteria(new AcknowledgedByFilter(user)))); assertEquals(0, matchingAlarmCount); }