mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
[build] Apply spotless for java formatting (#1768)
Update checkstyle config to be compatible with spotless. Co-authored-by: Austin Shalit <austinshalit@gmail.com>
This commit is contained in:
@@ -4,24 +4,20 @@
|
||||
|
||||
package edu.wpi.first.wpilibj;
|
||||
|
||||
import java.util.logging.Logger;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertFalse;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
import edu.wpi.first.wpilibj.AnalogTriggerOutput.AnalogTriggerType;
|
||||
import edu.wpi.first.wpilibj.fixtures.AnalogCrossConnectFixture;
|
||||
import edu.wpi.first.wpilibj.test.TestBench;
|
||||
import java.util.logging.Logger;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Before;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import edu.wpi.first.wpilibj.AnalogTriggerOutput.AnalogTriggerType;
|
||||
import edu.wpi.first.wpilibj.fixtures.AnalogCrossConnectFixture;
|
||||
import edu.wpi.first.wpilibj.test.TestBench;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertFalse;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
/**
|
||||
* Test that covers the {@link AnalogCrossConnectFixture}.
|
||||
*/
|
||||
/** Test that covers the {@link AnalogCrossConnectFixture}. */
|
||||
public class AnalogCrossConnectTest extends AbstractInterruptTest {
|
||||
private static final Logger logger = Logger.getLogger(AnalogCrossConnectTest.class.getName());
|
||||
|
||||
@@ -34,7 +30,6 @@ public class AnalogCrossConnectTest extends AbstractInterruptTest {
|
||||
return logger;
|
||||
}
|
||||
|
||||
|
||||
@BeforeClass
|
||||
public static void setUpBeforeClass() {
|
||||
analogIO = TestBench.getAnalogCrossConnectFixture();
|
||||
@@ -51,7 +46,6 @@ public class AnalogCrossConnectTest extends AbstractInterruptTest {
|
||||
analogIO.setup();
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testAnalogOuput() {
|
||||
for (int i = 0; i < 50; i++) {
|
||||
@@ -151,12 +145,11 @@ public class AnalogCrossConnectTest extends AbstractInterruptTest {
|
||||
InterruptableSensorBase giveInterruptableSensorBase() {
|
||||
m_interruptTrigger = new AnalogTrigger(analogIO.getInput());
|
||||
m_interruptTrigger.setLimitsVoltage(2.0, 3.0);
|
||||
m_interruptTriggerOutput = new AnalogTriggerOutput(m_interruptTrigger,
|
||||
AnalogTriggerType.kState);
|
||||
m_interruptTriggerOutput =
|
||||
new AnalogTriggerOutput(m_interruptTrigger, AnalogTriggerType.kState);
|
||||
return m_interruptTriggerOutput;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
@@ -172,7 +165,6 @@ public class AnalogCrossConnectTest extends AbstractInterruptTest {
|
||||
m_interruptTrigger = null;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user