예제 #1
0
 @Test
 public void testStopRotation() {
   car.stopRotation(Car.ROTATE_RIGHT);
   assertEquals(false, car.isRotating());
 }
예제 #2
0
 @Test
 public void testStartRotation() {
   car.startRotation(Car.ROTATE_RIGHT, 0.0);
   assertEquals(true, car.isRotating());
 }