예제 #1
0
  @Test
  public void shouldDoNothingIfAlreadyRaised() {
    // Preconditions
    lifter.raise();
    lifter.assertRaised();

    command.step(0);
    lifter.assertRaised();
  }
예제 #2
0
  @Test
  public void shouldRaiseRampWhenDown() {
    // Preconditions
    lifter.lower();
    lifter.assertLowered();

    command.step(0);
    lifter.assertRaised();
  }