Class AbstractTimedSystemTest
- java.lang.Object
 - 
- edu.wpi.first.wpilibj2.command.CommandBase
 - 
- com.lightningrobotics.common.testing.SystemTest
 - 
- com.lightningrobotics.common.testing.AbstractTimedSystemTest
 
 
 
 
- 
- All Implemented Interfaces:
 edu.wpi.first.util.sendable.Sendable,edu.wpi.first.wpilibj2.command.Command,java.lang.Comparable<SystemTest>
public abstract class AbstractTimedSystemTest extends SystemTest
AbstractSystemTestthat runs for a given period of time. 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from class com.lightningrobotics.common.testing.SystemTest
SystemTest.Priority 
 - 
 
- 
Constructor Summary
Constructors Constructor Description AbstractTimedSystemTest(java.lang.String msg, double timeout, LightningFaultCodes.Code code)Creates a new AbstractTimedSystemTestAbstractTimedSystemTest(java.lang.String msg, double timeout, LightningFaultCodes.Code code, SystemTest.Priority priority)Creates a new AbstractTimedSystemTest 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected doubleelapsed()The quantity of time that has passed since the test has started running.voidinitialize()booleanisFinished()- 
Methods inherited from class com.lightningrobotics.common.testing.SystemTest
compareTo, didPass, getCode, getMessage, getPriority, register 
- 
Methods inherited from class edu.wpi.first.wpilibj2.command.CommandBase
addRequirements, getName, getRequirements, getSubsystem, initSendable, setName, setSubsystem, withName 
- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface edu.wpi.first.wpilibj2.command.Command
alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineWith, end, execute, hasRequirement, isScheduled, perpetually, raceWith, runsWhenDisabled, schedule, schedule, until, withInterrupt, withTimeout 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
AbstractTimedSystemTest
public AbstractTimedSystemTest(java.lang.String msg, double timeout, LightningFaultCodes.Code code)Creates a new AbstractTimedSystemTest- Parameters:
 msg- Dashboard display message for the SystemTesttimeout- Duration the test should be run in secondscode-FaultCoderelating to the SystemTest
 
- 
AbstractTimedSystemTest
public AbstractTimedSystemTest(java.lang.String msg, double timeout, LightningFaultCodes.Code code, SystemTest.Priority priority)Creates a new AbstractTimedSystemTest- Parameters:
 msg- Dashboard display message for the SystemTesttimeout- Duration the test should be run in secondscode-FaultCoderelating to the SystemTestpriority-SystemTest.Priorityof the SystemTest
 
 - 
 
 -