mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-03 03:01:44 +00:00
Update to 2019 RoboRIO and 2019 v4 image (#1352)
Also make updates for Java 11: * Disable errorprone plugin (currently broken on Java 11) * Update checkstyle to 8.12 * Update pmd to 6.7.0
This commit is contained in:
committed by
Peter Johnson
parent
88b93c220e
commit
b9fa3a4398
@@ -19,6 +19,7 @@ import org.junit.jupiter.api.condition.OS;
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertFalse;
|
||||
import static org.junit.jupiter.api.Assertions.assertNotNull;
|
||||
import static org.junit.jupiter.api.Assertions.assertNotSame;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
import static org.junit.jupiter.api.Assertions.fail;
|
||||
|
||||
@@ -65,9 +66,9 @@ class ConnectionListenerTest {
|
||||
void testJNI() {
|
||||
// set up the poller
|
||||
int poller = NetworkTablesJNI.createConnectionListenerPoller(m_serverInst.getHandle());
|
||||
assertTrue(poller != 0, "bad poller handle");
|
||||
assertNotSame(poller, 0, "bad poller handle");
|
||||
int handle = NetworkTablesJNI.addPolledConnectionListener(poller, false);
|
||||
assertTrue(handle != 0, "bad listener handle");
|
||||
assertNotSame(handle, 0, "bad listener handle");
|
||||
|
||||
// trigger a connect event
|
||||
connect();
|
||||
|
||||
Reference in New Issue
Block a user