AssertException is thrown.
| Modifier and Type | Class and Description |
|---|---|
| public static class | Assert.AssertException
The exception thrown when the condition is not met. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static void | isEqual(Object
The first object used to be compared to the second object object1, Object The second object used to be compared to the first object object2, String The expression's message that will describe the reason why the check failed message)Determines whether the given two objects are equal (identity). |
| public static void | isFalse(boolean
The condition to verify it is condition, String falseThe expression's message that will describe the reason why the check failed message)Determines whether the given condition if |
| public static void | |
| public static void | |
| public static void | isTrue(boolean
The condition to verify it is condition, String trueThe expression's message that will describe the reason why the check failed message)Determines whether the given condition if |
| public static void |
| Assert | back to summary |
|---|---|
| private Assert() Prevents instantiation. | |
| fail | back to summary |
|---|---|
| public static void fail(String message) Throws an
| |
| isEqual | back to summary |
|---|---|
| public static void isEqual(Object object1, Object object2, String message) Determines whether the given two objects are equal (identity). If the two objects are not
identical, then an | |
| isFalse | back to summary |
|---|---|
| public static void isFalse(boolean condition, String message) Determines whether the given condition if
| |
| isNotNull | back to summary |
|---|---|
| public static void isNotNull(Object object, String message) Determines whether the given object is not | |
| isNull | back to summary |
|---|---|
| public static void isNull(Object object, String message) Determines whether the given object is | |
| isTrue | back to summary |
|---|---|
| public static void isTrue(boolean condition, String message) Determines whether the given condition if
| |
| isValid | back to summary |
|---|---|
| public static void isValid(Object object, String message, Object... choices) Determines whether the given object is one of the given choices using identity check. | |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | AssertException(String
The message describing the reason why this exception is thrown message)Creates a new |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| AssertException | back to summary |
|---|---|
| public AssertException(String message) Creates a new
| |