NonExecutingEventScheduler extends TypedEventScheduler { @Override public boolean hasOnlyDaemonEvents() { return events.stream().allMatch(Event::isDaemon); } NonExecutingEventScheduler(EventSchedulerType schedulerType, TimeProvider timeProvider); @Override TimeProvider getTimeProvider(); @Override Cancelable doNow(Runnable r, String description); @Override Cancelable doAt(double time, Runnable r, String description, boolean isDaemon); @Override long getThreadId(); @Override boolean hasOnlyDaemonEvents(); @Override void cancel(Event e); @Override void stop(); void executeAllEvents(); void executeOverdueEvents(); void reset();  }
@Test public void hasOnlyDaemonEventsReturnsTrueWhenNoEventsScheduled() { Assertions.assertTrue(eventScheduler.hasOnlyDaemonEvents()); }