A class that can be used to analyze the correctness of the program's behavior. More...
Classes | |
interface | StringFactory |
Interface for a callback which returns the message string to be attached to an assertion error. More... | |
Static Public Member Functions | |
static void | NotNull (Object object, StringFactory stringFactory) |
Throws AssertionError if the given object is null. More... | |
static void | Null (Object object, StringFactory stringFactory) |
Throws AssertionError if the given object is not null. More... | |
static void | Throw (String message) |
Throws AssertionError with the given message. More... | |
static void | True (boolean condition, StringFactory stringFactory) |
Throws AssertionError if the given condition is false. More... | |
A class that can be used to analyze the correctness of the program's behavior.
|
static |
Throws AssertionError if the given object is null.
object | The object to check. |
stringFactory | A callback which returns the message string to be attached to the error. |
|
static |
Throws AssertionError if the given object is not null.
object | The object to check. |
stringFactory | A callback which returns the message string to be attached to the error. |
|
static |
Throws AssertionError with the given message.
message | The message to attach to the error. |
|
static |
Throws AssertionError if the given condition is false.
condition | The condition to evaluate. |
stringFactory | A callback which returns the message string to be attached to the error. |