Cleanup: SensorDataCyclingDistanceSpeed.Data is a record.

This commit is contained in:
Dennis Guse
2023-11-15 07:20:03 +01:00
parent 58d79380cf
commit d47fa27e02
4 changed files with 7 additions and 44 deletions
@@ -104,8 +104,8 @@ public class SensorDataCyclingTest {
current.add(new Raw<>(new BluetoothHandlerCyclingDistanceSpeed.WheelData(2, 8016)));
// then
assertEquals(2.15, current.getValue().getDistance().toM(), 0.01);
assertEquals(1.20, current.getValue().getSpeed().toMPS(), 0.01);
assertEquals(2.15, current.getValue().distance().toM(), 0.01);
assertEquals(1.20, current.getValue().speed().toMPS(), 0.01);
}
@Test