Пример #1
0
  @Test
  public void testGearIsMoving() {
    theGear.setGearIsMoving(true);

    assertTrue(theGear.getGearIsMoving() == true);
    assertTrue(theGear.getGearDown() == false);
    assertTrue(theGear.getGearUp() == false);
  }
Пример #2
0
 @Test
 public void testGear() {
   assertTrue(theGear != null);
   assertTrue(theGear.getGearDown() == false);
   assertTrue(theGear.getGearUp() == true);
   assertTrue(theGear.getGearIsMoving() == false);
   assertTrue(theGear.theta == 0);
 }