SCRIPT: Spotless Apply

This commit is contained in:
PJ Reiniger
2025-11-07 19:57:21 -05:00
committed by Peter Johnson
parent c89910b7c6
commit c48b722dac
650 changed files with 1529 additions and 1545 deletions

View File

@@ -6,11 +6,11 @@ package org.wpilib.simulation;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.wpilib.hardware.hal.HAL;
import org.wpilib.hardware.accelerometer.ADXL345_I2C;
import org.wpilib.hardware.bus.I2C;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.EnumSource;
import org.wpilib.hardware.accelerometer.ADXL345_I2C;
import org.wpilib.hardware.bus.I2C;
import org.wpilib.hardware.hal.HAL;
class ADXL345SimTest {
@ParameterizedTest

View File

@@ -8,14 +8,14 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.Arrays;
import org.junit.jupiter.api.Test;
import org.wpilib.hardware.hal.HAL;
import org.wpilib.hardware.led.AddressableLED;
import org.wpilib.hardware.led.AddressableLEDBuffer;
import org.wpilib.simulation.testutils.BooleanCallback;
import org.wpilib.simulation.testutils.BufferCallback;
import org.wpilib.simulation.testutils.IntCallback;
import java.util.Arrays;
import org.junit.jupiter.api.Test;
class AddressableLEDSimTest {
@Test

View File

@@ -6,9 +6,9 @@ package org.wpilib.simulation;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.wpilib.hardware.rotation.AnalogEncoder;
import org.wpilib.hardware.discrete.AnalogInput;
import org.junit.jupiter.api.Test;
import org.wpilib.hardware.discrete.AnalogInput;
import org.wpilib.hardware.rotation.AnalogEncoder;
class AnalogEncoderSimTest {
@Test

View File

@@ -7,11 +7,11 @@ package org.wpilib.simulation;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import org.wpilib.hardware.hal.HAL;
import org.junit.jupiter.api.Test;
import org.wpilib.hardware.discrete.AnalogInput;
import org.wpilib.hardware.hal.HAL;
import org.wpilib.simulation.testutils.BooleanCallback;
import org.wpilib.simulation.testutils.DoubleCallback;
import org.junit.jupiter.api.Test;
class AnalogInputSimTest {
@Test

View File

@@ -9,6 +9,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
import org.wpilib.hardware.hal.HAL;
import org.wpilib.hardware.pneumatic.CompressorConfigType;
import org.wpilib.hardware.pneumatic.DoubleSolenoid;
@@ -16,7 +17,6 @@ import org.wpilib.hardware.pneumatic.PneumaticsControlModule;
import org.wpilib.hardware.pneumatic.PneumaticsModuleType;
import org.wpilib.simulation.testutils.BooleanCallback;
import org.wpilib.simulation.testutils.DoubleCallback;
import org.junit.jupiter.api.Test;
class CTREPCMSimTest {
@Test

View File

@@ -6,16 +6,16 @@ package org.wpilib.simulation;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
import org.wpilib.hardware.motor.PWMVictorSPX;
import org.wpilib.hardware.rotation.Encoder;
import org.wpilib.math.controller.PIDController;
import org.wpilib.math.numbers.N1;
import org.wpilib.math.numbers.N2;
import org.wpilib.math.system.LinearSystem;
import org.wpilib.math.system.plant.DCMotor;
import org.wpilib.math.system.plant.LinearSystemId;
import org.wpilib.hardware.rotation.Encoder;
import org.wpilib.system.RobotController;
import org.wpilib.hardware.motor.PWMVictorSPX;
import org.junit.jupiter.api.Test;
class DCMotorSimTest {
@Test

View File

@@ -7,11 +7,11 @@ package org.wpilib.simulation;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import org.wpilib.hardware.hal.HAL;
import org.junit.jupiter.api.Test;
import org.wpilib.hardware.discrete.DigitalInput;
import org.wpilib.hardware.discrete.DigitalOutput;
import org.wpilib.hardware.hal.HAL;
import org.wpilib.simulation.testutils.BooleanCallback;
import org.junit.jupiter.api.Test;
class DIOSimTest {
@Test

View File

@@ -7,15 +7,16 @@ package org.wpilib.simulation;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import org.wpilib.math.linalg.Matrix;
import org.wpilib.math.util.Nat;
import org.wpilib.math.linalg.VecBuilder;
import org.wpilib.math.linalg.Vector;
import java.util.List;
import org.junit.jupiter.api.Test;
import org.wpilib.math.controller.LTVUnicycleController;
import org.wpilib.math.controller.LinearPlantInversionFeedforward;
import org.wpilib.math.geometry.Pose2d;
import org.wpilib.math.geometry.Rotation2d;
import org.wpilib.math.kinematics.DifferentialDriveKinematics;
import org.wpilib.math.linalg.Matrix;
import org.wpilib.math.linalg.VecBuilder;
import org.wpilib.math.linalg.Vector;
import org.wpilib.math.numbers.N1;
import org.wpilib.math.numbers.N7;
import org.wpilib.math.system.NumericalIntegration;
@@ -24,9 +25,8 @@ import org.wpilib.math.system.plant.LinearSystemId;
import org.wpilib.math.trajectory.TrajectoryConfig;
import org.wpilib.math.trajectory.TrajectoryGenerator;
import org.wpilib.math.trajectory.constraint.DifferentialDriveKinematicsConstraint;
import org.wpilib.math.util.Nat;
import org.wpilib.math.util.Units;
import java.util.List;
import org.junit.jupiter.api.Test;
class DifferentialDrivetrainSimTest {
@Test

View File

@@ -8,12 +8,12 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import org.wpilib.hardware.hal.HAL;
import org.junit.jupiter.api.Test;
import org.wpilib.hardware.discrete.DigitalOutput;
import org.wpilib.hardware.hal.HAL;
import org.wpilib.simulation.testutils.BooleanCallback;
import org.wpilib.simulation.testutils.DoubleCallback;
import org.wpilib.simulation.testutils.IntCallback;
import org.junit.jupiter.api.Test;
class DigitalPWMSimTest {
@Test

View File

@@ -8,15 +8,15 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import org.wpilib.hardware.hal.AllianceStationID;
import org.wpilib.hardware.hal.HAL;
import org.wpilib.driverstation.DriverStation;
import org.wpilib.simulation.testutils.BooleanCallback;
import org.wpilib.simulation.testutils.DoubleCallback;
import org.wpilib.simulation.testutils.EnumCallback;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.EnumSource;
import org.wpilib.driverstation.DriverStation;
import org.wpilib.hardware.hal.AllianceStationID;
import org.wpilib.hardware.hal.HAL;
import org.wpilib.simulation.testutils.BooleanCallback;
import org.wpilib.simulation.testutils.DoubleCallback;
import org.wpilib.simulation.testutils.EnumCallback;
class DriverStationSimTest {
@Test

View File

@@ -8,9 +8,9 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
import org.wpilib.hardware.hal.HAL;
import org.wpilib.hardware.rotation.DutyCycleEncoder;
import org.junit.jupiter.api.Test;
class DutyCycleEncoderSimTest {
@Test

View File

@@ -8,11 +8,11 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
import org.wpilib.hardware.hal.HAL;
import org.wpilib.hardware.rotation.DutyCycle;
import org.wpilib.simulation.testutils.BooleanCallback;
import org.wpilib.simulation.testutils.DoubleCallback;
import org.junit.jupiter.api.Test;
class DutyCycleSimTest {
@Test

View File

@@ -7,15 +7,15 @@ package org.wpilib.simulation;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import org.wpilib.math.linalg.VecBuilder;
import org.junit.jupiter.api.Test;
import org.wpilib.hardware.motor.PWMVictorSPX;
import org.wpilib.hardware.rotation.Encoder;
import org.wpilib.math.controller.PIDController;
import org.wpilib.math.linalg.VecBuilder;
import org.wpilib.math.system.plant.DCMotor;
import org.wpilib.math.system.plant.LinearSystemId;
import org.wpilib.math.util.Units;
import org.wpilib.hardware.rotation.Encoder;
import org.wpilib.system.RobotController;
import org.wpilib.hardware.motor.PWMVictorSPX;
import org.junit.jupiter.api.Test;
class ElevatorSimTest {
@Test

View File

@@ -7,11 +7,11 @@ package org.wpilib.simulation;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
import org.wpilib.hardware.hal.HAL;
import org.wpilib.hardware.rotation.Encoder;
import org.wpilib.simulation.testutils.DoubleCallback;
import org.wpilib.simulation.testutils.IntCallback;
import org.junit.jupiter.api.Test;
class EncoderSimTest {
private static final double DEFAULT_DISTANCE_PER_PULSE = 0.0005;

View File

@@ -6,9 +6,9 @@ package org.wpilib.simulation;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
import org.wpilib.hardware.hal.HAL;
import org.wpilib.hardware.motor.Spark;
import org.junit.jupiter.api.Test;
class PWMMotorControllerSimTest {
@Test

View File

@@ -8,11 +8,11 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import org.wpilib.hardware.hal.HAL;
import org.junit.jupiter.api.Test;
import org.wpilib.hardware.discrete.PWM;
import org.wpilib.hardware.hal.HAL;
import org.wpilib.simulation.testutils.BooleanCallback;
import org.wpilib.simulation.testutils.IntCallback;
import org.junit.jupiter.api.Test;
class PWMSimTest {
@Test

View File

@@ -9,6 +9,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
import org.wpilib.hardware.hal.HAL;
import org.wpilib.hardware.pneumatic.CompressorConfigType;
import org.wpilib.hardware.pneumatic.DoubleSolenoid;
@@ -17,7 +18,6 @@ import org.wpilib.hardware.pneumatic.PneumaticsModuleType;
import org.wpilib.simulation.testutils.BooleanCallback;
import org.wpilib.simulation.testutils.DoubleCallback;
import org.wpilib.simulation.testutils.EnumCallback;
import org.junit.jupiter.api.Test;
class REVPHSimTest {
@Test

View File

@@ -8,11 +8,11 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import org.wpilib.system.RobotController;
import org.junit.jupiter.api.Test;
import org.wpilib.simulation.testutils.BooleanCallback;
import org.wpilib.simulation.testutils.DoubleCallback;
import org.wpilib.simulation.testutils.IntCallback;
import org.junit.jupiter.api.Test;
import org.wpilib.system.RobotController;
class RoboRioSimTest {
@Test

View File

@@ -8,12 +8,12 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.concurrent.atomic.AtomicInteger;
import org.junit.jupiter.api.Test;
import org.wpilib.hardware.hal.SimBoolean;
import org.wpilib.hardware.hal.SimDevice;
import org.wpilib.hardware.hal.SimDevice.Direction;
import org.wpilib.hardware.hal.SimValue;
import java.util.concurrent.atomic.AtomicInteger;
import org.junit.jupiter.api.Test;
class SimDeviceSimTest {
@Test

View File

@@ -6,10 +6,10 @@ package org.wpilib.simulation;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
import org.wpilib.math.linalg.VecBuilder;
import org.wpilib.math.system.plant.DCMotor;
import org.wpilib.math.util.Units;
import org.junit.jupiter.api.Test;
class SingleJointedArmSimTest {
@Test

View File

@@ -4,8 +4,8 @@
package org.wpilib.simulation.testutils;
import org.wpilib.hardware.hal.simulation.ConstBufferCallback;
import java.util.Arrays;
import org.wpilib.hardware.hal.simulation.ConstBufferCallback;
public class BufferCallback implements ConstBufferCallback {
private boolean m_wasTriggered;