public abstract class AssertionErrors
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
AssertionErrors() |
Modifier and Type | Method and Description |
---|---|
static void |
assertEquals(java.lang.String message,
java.lang.Object expected,
java.lang.Object actual)
Asserts that two objects are equal.
|
static void |
assertTrue(java.lang.String message,
boolean condition)
Asserts that a condition is
true . |
static void |
fail(java.lang.String message)
Fails a test with the given message.
|
static void |
fail(java.lang.String message,
java.lang.Object expected,
java.lang.Object actual)
Fails a test with the given message passing along expected and actual
values to be added to the message.
|
public static void fail(java.lang.String message)
message
- the messagepublic static void fail(java.lang.String message, java.lang.Object expected, java.lang.Object actual)
message
- the messageexpected
- the expected valueactual
- the actual valuepublic static void assertTrue(java.lang.String message, boolean condition)
true
. If not, throws an
AssertionError
with the given message.message
- the messagecondition
- the condition to test forpublic static void assertEquals(java.lang.String message, java.lang.Object expected, java.lang.Object actual)
AssertionError
is
thrown with the given message.message
- the messageexpected
- the expected valueactual
- the actual value