/** * This uses a task that just marks itself as run when its "execute" method is called. This * verifies that the Daemon class is getting past the class check and on to the task running * step * * @see Daemon#executeScheduledTask(Task) */ @Test public void executeScheduledTask_shouldNotThrowErrorIfCalledFromATimerSchedulerTaskClass() throws Throwable { Task task = new PrivateTask(); Assert.assertTrue(new PrivateSchedulerTask(task).runTheTest()); }