Class RobotAssertionManager
java.lang.Object
xbot.common.logging.assertion.RobotAssertionManager
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 Summary
Modifier and TypeMethodDescriptionstatic voidassertTrue(boolean value, String assertionFailureCause) static voidconfigure(RobotAssertionHandler handler) Selects the handler used by all subsequent assertions.static voidstatic booleanstatic voidthrowException(RuntimeException exception) static voidthrowException(String message) static voidthrowException(String message, Throwable cause)
-
Method Details
-
configure
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
-
throwException
-
throwException
-
isExceptionsEnabled
public static boolean isExceptionsEnabled() -
fail
-
assertTrue
-