コード例 #1
0
 @Test(expected = NullPointerException.class)
 public void setTimerTaskNull() throws Exception {
   RecurringTaskHandleImpl handle = new RecurringTaskHandleImpl(scheduler, recurringTestTask);
   handle.setTimerTask(null);
 }
コード例 #2
0
 @Test
 public void scheduleNextRecurrence() throws Exception {
   RecurringTaskHandleImpl handle = new RecurringTaskHandleImpl(scheduler, recurringTestTask);
   handle.scheduleNextRecurrence();
 }