@Test public void testUpdateLastNotificationTime() { GregorianCalendar calendar = new GregorianCalendar(); calendar.setTime(new Date()); calendar.add(GregorianCalendar.HOUR, -1); notifier.updateLastNotificationTime(calendar.getTime()); assertTrue(notifier.lastNotificationTime.getTime().compareTo(new Date()) < 0); }
void updateLastNotificationTime(Date newTime) { this.lastNotificationTime.setTime(newTime); }
TimedSummaryNotifier implements Runnable { void updateLastNotificationTime(Date newTime) { this.lastNotificationTime.setTime(newTime); } }
TimedSummaryNotifier implements Runnable { void updateLastNotificationTime(Date newTime) { this.lastNotificationTime.setTime(newTime); } TimedSummaryNotifier(List<NotifierEngine> engines, Duration interval,
            String[] tools, String mongodbHost, String mongodbName, Date notificationTime);  TimedSummaryNotifier(List<NotifierEngine> engines, Duration interval, String[] tools,
            String mongdbHost, String mongodbName); }
TimedSummaryNotifier implements Runnable { void updateLastNotificationTime(Date newTime) { this.lastNotificationTime.setTime(newTime); } TimedSummaryNotifier(List<NotifierEngine> engines, Duration interval,
            String[] tools, String mongodbHost, String mongodbName, Date notificationTime);  TimedSummaryNotifier(List<NotifierEngine> engines, Duration interval, String[] tools,
            String mongdbHost, String mongodbName); @Override void run(); }
TimedSummaryNotifier implements Runnable { void updateLastNotificationTime(Date newTime) { this.lastNotificationTime.setTime(newTime); } TimedSummaryNotifier(List<NotifierEngine> engines, Duration interval,
            String[] tools, String mongodbHost, String mongodbName, Date notificationTime);  TimedSummaryNotifier(List<NotifierEngine> engines, Duration interval, String[] tools,
            String mongdbHost, String mongodbName); @Override void run();  }