Class RobotAssertionManager

java.lang.Object
xbot.common.logging.assertion.RobotAssertionManager

public final class RobotAssertionManager extends Object
Static entry point for robot assertions. Assertions are logged without throwing until a handler is configured. Use a RobotAssertionHandler instance directly when an object needs its own failure policy.
  • Method Details

    • configure

      public static void configure(RobotAssertionHandler handler)
      Selects the handler used by all subsequent assertions. Configure before creating robot systems or test fixtures. A null handler is reported through the current handler and leaves the configuration unchanged.
      Parameters:
      handler - the platform-specific assertion handler
    • throwException

      public static void throwException(RuntimeException exception)
    • throwException

      public static void throwException(String message, Throwable cause)
    • throwException

      public static void throwException(String message)
    • isExceptionsEnabled

      public static boolean isExceptionsEnabled()
    • fail

      public static void fail(String message)
    • assertTrue

      public static void assertTrue(boolean value, String assertionFailureCause)