Beispiel #1
0
 @Test
 public void testDecrementSpeed() throws Exception {
   double expected = 0;
   saab.currentSpeed = 2.5;
   saab.decrementSpeed(2);
   double actual = saab.currentSpeed;
   assertEquals(expected, actual, 0.0001);
 }
Beispiel #2
0
 @Test
 public void testSetTubroOff() throws Exception {
   boolean expected = false;
   saab.setTurboOff();
   boolean actual = saab.turboOn;
   assertEquals(expected, actual);
 }