mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11:43 +00:00
Switch non-integration tests to JUnit 5 (#1120)
This commit is contained in:
committed by
Peter Johnson
parent
c7e97f45f5
commit
9108a93598
@@ -7,25 +7,24 @@
|
||||
|
||||
package edu.wpi.first.hal.sim;
|
||||
|
||||
import static org.junit.Assert.assertFalse;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import edu.wpi.first.wpilibj.hal.AccelerometerJNI;
|
||||
import edu.wpi.first.wpilibj.hal.HAL;
|
||||
import edu.wpi.first.wpilibj.sim.AccelerometerSim;
|
||||
import edu.wpi.first.wpilibj.sim.CallbackStore;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertFalse;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
public class AccelerometerSimTest {
|
||||
class AccelerometerSimTest {
|
||||
static class TriggeredStore {
|
||||
public boolean wasTriggered = false;
|
||||
public boolean wasTriggered;
|
||||
public boolean setValue = true;
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCallbacks() {
|
||||
void testCallbacks() {
|
||||
HAL.initialize(500, 0);
|
||||
AccelerometerSim sim = new AccelerometerSim();
|
||||
sim.resetData();
|
||||
|
||||
Reference in New Issue
Block a user