Пример #1
0
 @Test
 public void testSetMotorPosition() {
   try {
     motor.setPosition(1.0);
   } catch (MotorPositionOutOfBounds e) {
     fail("The motor attempted to move out of bounds");
   }
   assertEquals(1.0, motor.getPostion(), 0.001);
 }
Пример #2
0
 @Test
 public void testGetMotorPosition() {
   assertEquals(0.0, motor.getPostion(), 0.001);
 }