|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.swtbot.swt.finder.utils.internal.Assert
public final class Assert
Copy of Assert, moved here to reduce dependency on org.eclipse.equinox.common.
| Method Summary | |
|---|---|
static boolean |
isLegal(boolean expression)
Asserts that an argument is legal. |
static boolean |
isLegal(boolean expression,
Object message)
Asserts that an argument is legal. |
static void |
isNotEmpty(Object... toCheck)
Asserts that the given list is not empty or null. |
static void |
isNotNull(Object object)
Asserts that the given object is not null. |
static void |
isNotNull(Object object,
Object message)
Asserts that the given object is not null. |
static void |
isTrue(boolean expression)
Asserts that the given boolean is true. |
static void |
isTrue(boolean expression,
Object message)
Asserts that the given boolean is true. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean isLegal(boolean expression)
true, an
IllegalArgumentException is thrown.
expression - the outcode of the check
true if the check passes (does not return if the check fails)
IllegalArgumentException - if the legality test failed
public static boolean isLegal(boolean expression,
Object message)
true, an
IllegalArgumentException is thrown. The given message is included in that exception, to aid
debugging.
expression - the outcode of the checkmessage - the message to include in the exception
true if the check passes (does not return if the check fails)
IllegalArgumentException - if the legality test failedpublic static void isNotNull(Object object)
null. If this is not the case, some kind of unchecked exception
is thrown.
object - the value to test
public static void isNotNull(Object object,
Object message)
null. If this is not the case, some kind of unchecked exception
is thrown. The given message is included in that exception, to aid debugging.
object - the value to testmessage - the message to include in the exceptionpublic static void isTrue(boolean expression)
true. If this is not the case, some kind of unchecked exception is
thrown.
expression - the outcode of the check
public static void isTrue(boolean expression,
Object message)
true. If this is not the case, some kind of unchecked exception is
thrown. The given message is included in that exception, to aid debugging.
expression - the outcode of the checkmessage - the message to include in the exceptionpublic static void isNotEmpty(Object... toCheck)
expression - the outcode of the checkmessage - the message to include in the exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||