|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vividsolutions.jts.util.Assert
A utility for making programming assertions.
Constructor Summary | |
Assert()
|
Method Summary | |
static void |
equals(java.lang.Object expectedValue,
java.lang.Object actualValue)
Throws an AssertionFailedException if the given objects are
not equal, according to the equals method. |
static void |
equals(java.lang.Object expectedValue,
java.lang.Object actualValue,
java.lang.String message)
Throws an AssertionFailedException with the given message if
the given objects are not equal, according to the equals
method. |
static void |
isTrue(boolean assertion)
Throws an AssertionFailedException if the given assertion is
not true. |
static void |
isTrue(boolean assertion,
java.lang.String message)
Throws an AssertionFailedException with the given message if
the given assertion is not true. |
static void |
shouldNeverReachHere()
Always throws an AssertionFailedException . |
static void |
shouldNeverReachHere(java.lang.String message)
Always throws an AssertionFailedException with the given
message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Assert()
Method Detail |
public static void isTrue(boolean assertion)
AssertionFailedException
if the given assertion is
not true.
assertion
- a condition that is supposed to be true
AssertionFailedException
- if the condition is falsepublic static void isTrue(boolean assertion, java.lang.String message)
AssertionFailedException
with the given message if
the given assertion is not true.
assertion
- a condition that is supposed to be truemessage
- a description of the assertion
AssertionFailedException
- if the condition is falsepublic static void equals(java.lang.Object expectedValue, java.lang.Object actualValue)
AssertionFailedException
if the given objects are
not equal, according to the equals
method.
expectedValue
- the correct valueactualValue
- the value being checked
AssertionFailedException
- if the two objects are not equalpublic static void equals(java.lang.Object expectedValue, java.lang.Object actualValue, java.lang.String message)
AssertionFailedException
with the given message if
the given objects are not equal, according to the equals
method.
expectedValue
- the correct valueactualValue
- the value being checkedmessage
- a description of the assertion
AssertionFailedException
- if the two objects are not equalpublic static void shouldNeverReachHere()
AssertionFailedException
.
AssertionFailedException
- thrown alwayspublic static void shouldNeverReachHere(java.lang.String message)
AssertionFailedException
with the given
message.
message
- a description of the assertion
AssertionFailedException
- thrown always
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |