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. | |
| static void | Null (Object object, StringFactory stringFactory) |
| Throws AssertionError if the given object is not null. | |
| static void | Throw (String message) |
| Throws AssertionError with the given message. | |
| static void | True (boolean condition, StringFactory stringFactory) |
| Throws AssertionError if the given condition is false. | |
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. |