Class DriverStationWrapper

java.lang.Object
com.thethriftybot.wrappers.DriverStationWrapper

public final class DriverStationWrapper extends Object
Wrapper for DriverStation to allow mocking.
  • Method Details

    • setDelegate

      public static void setDelegate(DriverStationInterface newDelegate)
      Sets the delegate.
      Parameters:
      newDelegate - The new delegate.
    • resetDelegate

      public static void resetDelegate()
      Resets the delegate to the default.
    • reportError

      public static void reportError(String string, boolean printTrace)
      Reports an error.
      Parameters:
      string - The error message.
      printTrace - Whether to print the stack trace.
    • reportWarning

      public static void reportWarning(String string, boolean printTrace)
      Reports a warning.
      Parameters:
      string - The warning message.
      printTrace - Whether to print the stack trace.
    • reportError

      public static void reportError(String string, StackTraceElement[] stackTrace)
      Reports an error.
      Parameters:
      string - The error message.
      stackTrace - The stack trace.
    • reportWarning

      public static void reportWarning(String string, StackTraceElement[] stackTrace)
      Reports a warning.
      Parameters:
      string - The warning message.
      stackTrace - The stack trace.