mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
SCRIPT: Spotless Apply
This commit is contained in:
committed by
Peter Johnson
parent
c89910b7c6
commit
c48b722dac
@@ -7,20 +7,20 @@ package org.wpilib.examples.armsimulation;
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
import org.wpilib.hardware.hal.HAL;
|
||||
import org.wpilib.math.util.Units;
|
||||
import org.wpilib.util.Preferences;
|
||||
import org.wpilib.simulation.DriverStationSim;
|
||||
import org.wpilib.simulation.EncoderSim;
|
||||
import org.wpilib.simulation.JoystickSim;
|
||||
import org.wpilib.simulation.PWMMotorControllerSim;
|
||||
import org.wpilib.simulation.RoboRioSim;
|
||||
import org.wpilib.simulation.SimHooks;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
import org.wpilib.util.Preferences;
|
||||
|
||||
@ResourceLock("timing")
|
||||
class ArmSimulationTest {
|
||||
|
||||
@@ -8,17 +8,17 @@ 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.simulation.DIOSim;
|
||||
import org.wpilib.simulation.DriverStationSim;
|
||||
import org.wpilib.simulation.SimHooks;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.EnumSource;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
import org.wpilib.hardware.hal.AllianceStationID;
|
||||
import org.wpilib.hardware.hal.HAL;
|
||||
import org.wpilib.simulation.DIOSim;
|
||||
import org.wpilib.simulation.DriverStationSim;
|
||||
import org.wpilib.simulation.SimHooks;
|
||||
|
||||
@ResourceLock("timing")
|
||||
class DigitalCommunicationTest {
|
||||
|
||||
@@ -7,6 +7,10 @@ package org.wpilib.examples.elevatorsimulation;
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.wpilib.hardware.hal.HAL;
|
||||
import org.wpilib.simulation.DriverStationSim;
|
||||
import org.wpilib.simulation.EncoderSim;
|
||||
@@ -14,10 +18,6 @@ import org.wpilib.simulation.JoystickSim;
|
||||
import org.wpilib.simulation.PWMMotorControllerSim;
|
||||
import org.wpilib.simulation.RoboRioSim;
|
||||
import org.wpilib.simulation.SimHooks;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
@ResourceLock("timing")
|
||||
class ElevatorSimulationTest {
|
||||
|
||||
@@ -8,13 +8,6 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertTimeoutPreemptively;
|
||||
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.CallbackStore;
|
||||
import org.wpilib.simulation.DriverStationSim;
|
||||
import org.wpilib.simulation.I2CSim;
|
||||
import org.wpilib.simulation.SimHooks;
|
||||
import java.time.Duration;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
@@ -23,6 +16,13 @@ import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.EnumSource;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
import org.wpilib.driverstation.DriverStation;
|
||||
import org.wpilib.hardware.hal.AllianceStationID;
|
||||
import org.wpilib.hardware.hal.HAL;
|
||||
import org.wpilib.simulation.CallbackStore;
|
||||
import org.wpilib.simulation.DriverStationSim;
|
||||
import org.wpilib.simulation.I2CSim;
|
||||
import org.wpilib.simulation.SimHooks;
|
||||
|
||||
@ResourceLock("timing")
|
||||
class I2CCommunicationTest {
|
||||
|
||||
@@ -7,21 +7,21 @@ package org.wpilib.examples.potentiometerpid;
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.wpilib.hardware.hal.HAL;
|
||||
import org.wpilib.hardware.hal.HAL.SimPeriodicBeforeCallback;
|
||||
import org.wpilib.math.system.plant.DCMotor;
|
||||
import org.wpilib.math.util.Units;
|
||||
import org.wpilib.system.RobotController;
|
||||
import org.wpilib.simulation.AnalogInputSim;
|
||||
import org.wpilib.simulation.DriverStationSim;
|
||||
import org.wpilib.simulation.ElevatorSim;
|
||||
import org.wpilib.simulation.JoystickSim;
|
||||
import org.wpilib.simulation.PWMMotorControllerSim;
|
||||
import org.wpilib.simulation.SimHooks;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.wpilib.system.RobotController;
|
||||
|
||||
@ResourceLock("timing")
|
||||
class PotentiometerPIDTest {
|
||||
|
||||
@@ -6,15 +6,15 @@ package org.wpilib.examples.unittest.subsystems;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
import org.wpilib.hardware.hal.HAL;
|
||||
import org.wpilib.hardware.pneumatic.DoubleSolenoid;
|
||||
import org.wpilib.hardware.pneumatic.PneumaticsModuleType;
|
||||
import org.wpilib.examples.unittest.Constants.IntakeConstants;
|
||||
import org.wpilib.simulation.DoubleSolenoidSim;
|
||||
import org.wpilib.simulation.PWMMotorControllerSim;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.wpilib.examples.unittest.Constants.IntakeConstants;
|
||||
import org.wpilib.hardware.hal.HAL;
|
||||
import org.wpilib.hardware.pneumatic.DoubleSolenoid;
|
||||
import org.wpilib.hardware.pneumatic.PneumaticsModuleType;
|
||||
import org.wpilib.simulation.DoubleSolenoidSim;
|
||||
import org.wpilib.simulation.PWMMotorControllerSim;
|
||||
|
||||
class IntakeTest {
|
||||
static final double DELTA = 1e-2; // acceptable deviation range
|
||||
|
||||
Reference in New Issue
Block a user