public void testToString() { Stepper st = newSt(false); StepperTask t = taskBetween(100, 200, 50, st); t.toString(); t.cookie = "foo"; t.toString(); }
public void testStepper() { Stepper st = newSt(false); StepperTask t = taskBetween(100, 200, 50, st); assertEquals(st, t.getStepper()); assertFalse(t.isBackgroundTask()); assertFalse(t.isFinished()); t.e = new Exception(); assertTrue(t.isFinished()); Stepper st2 = newSt(true); StepperTask t2 = taskBetween(100, 200, 50, st2); assertTrue(t2.isFinished()); }