diff --git a/wpilibj/src/test/java/edu/wpi/first/wpilibj/SolenoidTestCTRE.java b/wpilibj/src/test/java/edu/wpi/first/wpilibj/SolenoidTestCTRE.java index 17120467860..6c5901453de 100644 --- a/wpilibj/src/test/java/edu/wpi/first/wpilibj/SolenoidTestCTRE.java +++ b/wpilibj/src/test/java/edu/wpi/first/wpilibj/SolenoidTestCTRE.java @@ -19,10 +19,10 @@ void testValidInitialization() { assertEquals(2, solenoid.getChannel()); solenoid.set(true); - assertTrue(solenoid.get()); + assertTrue(solenoid.isOn()); solenoid.set(false); - assertFalse(solenoid.get()); + assertFalse(solenoid.isOn()); } } @@ -52,13 +52,13 @@ void testInvalidChannel() { void testToggle() { try (Solenoid solenoid = new Solenoid(3, PneumaticsModuleType.CTREPCM, 2)) { solenoid.set(true); - assertTrue(solenoid.get()); + assertTrue(solenoid.isOn()); solenoid.toggle(); - assertFalse(solenoid.get()); + assertFalse(solenoid.isOn()); solenoid.toggle(); - assertTrue(solenoid.get()); + assertTrue(solenoid.isOn()); } } } diff --git a/wpilibj/src/test/java/edu/wpi/first/wpilibj/SolenoidTestREV.java b/wpilibj/src/test/java/edu/wpi/first/wpilibj/SolenoidTestREV.java index eb327d4dc7b..d60d796999f 100644 --- a/wpilibj/src/test/java/edu/wpi/first/wpilibj/SolenoidTestREV.java +++ b/wpilibj/src/test/java/edu/wpi/first/wpilibj/SolenoidTestREV.java @@ -19,10 +19,10 @@ void testValidInitialization() { assertEquals(2, solenoid.getChannel()); solenoid.set(true); - assertTrue(solenoid.get()); + assertTrue(solenoid.isOn()); solenoid.set(false); - assertFalse(solenoid.get()); + assertFalse(solenoid.isOn()); } } @@ -50,13 +50,13 @@ void testInvalidChannel() { void testToggle() { try (Solenoid solenoid = new Solenoid(3, PneumaticsModuleType.REVPH, 2)) { solenoid.set(true); - assertTrue(solenoid.get()); + assertTrue(solenoid.isOn()); solenoid.toggle(); - assertFalse(solenoid.get()); + assertFalse(solenoid.isOn()); solenoid.toggle(); - assertTrue(solenoid.get()); + assertTrue(solenoid.isOn()); } } }