예제 #1
0
 public void testToString() {
   Stepper st = newSt(false);
   StepperTask t = taskBetween(100, 200, 50, st);
   t.toString();
   t.cookie = "foo";
   t.toString();
 }
예제 #2
0
  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());
  }