File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed
src/test/java/org/carlmontrobotics/lib199 Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -15,15 +15,13 @@ public class MotorControllerFactoryTest extends ErrStreamTest {
1515 @ Rule
1616 public TestRules .ResetSimDeviceSimData simTestRule = new TestRules .ResetSimDeviceSimData ();
1717
18- //FIXME: should this be rewritten for another motor?
19- // @Test
20- // // AutoClosable.close() throws Exception
21- // public void testCreateNoErrors() throws Exception {
22- // // Call close to free PWM ports
23- // ((AutoCloseable)MotorControllerFactory.createTalon(0)).close();
24- // ((AutoCloseable)MotorControllerFactory.createVictor(1)).close();
25- // MotorControllerFactory.createSparkMax(2, MotorConfig.NEO);
26- // assertEquals(0, errStream.toByteArray().length);
27- // }
18+ @ Test
19+ // AutoClosable.close() throws Exception
20+ public void testCreateNoErrors () throws Exception {
21+ // Call close to free PWM ports
22+ ((AutoCloseable )MotorControllerFactory .createTalon (0 )).close ();
23+ MotorControllerFactory .createSparkMax (2 , MotorConfig .NEO );
24+ assertEquals (0 , errStream .toByteArray ().length );
25+ }
2826
2927}
You can’t perform that action at this time.
0 commit comments