public class Assert extends Object
| Constructor and Description |
|---|
Assert() |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertFalse(String message,
boolean condition)
Asserts that a condition is false.
|
static void |
assertNotNull(Object object)
Asserts that an object isn't null.
|
static void |
assertNotNull(String message,
Object object)
Asserts that an object isn't null.
|
static void |
assertNull(Object object)
Asserts that an object is null.
|
static void |
assertNull(String message,
Object object)
Asserts that an object is null.
|
static void |
assertTrue(String message,
boolean condition)
Asserts that a condition is true.
|
static void |
fail(String message)
Fails a test with the given message.
|
public static void assertTrue(String message, boolean condition)
AssertionError with the given message.message - the identifying message for the AssertionError (null
okay)condition - condition to be checkedpublic static void assertFalse(String message, boolean condition)
AssertionError with the given message.message - the identifying message for the AssertionError (null
okay)condition - condition to be checkedpublic static void fail(String message)
message - the identifying message for the AssertionError (null
okay)AssertionErrorpublic static void assertNotNull(String message, Object object)
AssertionError is
thrown with the given message.message - the identifying message for the AssertionError (null
okay)object - Object to check or nullpublic static void assertNotNull(Object object)
AssertionError is
thrown.object - Object to check or nullpublic static void assertNull(String message, Object object)
AssertionError
is thrown with the given message.message - the identifying message for the AssertionError (null
okay)object - Object to check or nullpublic static void assertNull(Object object)
AssertionError is
thrown.object - Object to check or nullCopyright © 2012-2014 BMW Car IT. All Rights Reserved.