File tree Expand file tree Collapse file tree
src/test/java/org/carlmontrobotics/lib199/sim Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,11 +36,11 @@ public void testDeviceCreation() {
3636 }
3737
3838 private void assertTestDeviceCreation (int id ) {
39- String deviceName = String .format ("CANEncoder_SparkMax [%d]" , id );
39+ String deviceName = String .format ("RelativeEncoder [%d]" , id );
4040 assertFalse (simDeviceExists (deviceName ));
4141 try (SafelyClosable closableEncoder = createEncoder (id )) {
4242 assertTrue (simDeviceExists (deviceName ));
43- SimDeviceSim sim = new SimDeviceSim ("CANEncoder_SparkMax " , id );
43+ SimDeviceSim sim = new SimDeviceSim ("RelativeEncoder " , id );
4444 assertEquals (2 , Stream .of (sim .enumerateValues ())
4545 .map (info -> info .name )
4646 .distinct ()
@@ -102,7 +102,7 @@ private void withEncoders(EncoderTest func) {
102102
103103 private void withEncoder (int id , EncoderTest func ) {
104104 try (SafelyClosable encoder = createEncoder (id )) {
105- SimDeviceSim sim = new SimDeviceSim ("CANEncoder_SparkMax " , id );
105+ SimDeviceSim sim = new SimDeviceSim ("RelativeEncoder " , id );
106106 SimDouble dpp = sim .getDouble ("distancePerPulse" );
107107 SimDouble count = sim .getDouble ("count" );
108108 assertNotNull (dpp );
You can’t perform that action at this time.
0 commit comments