|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectjava.lang.Throwable
java.lang.Error
java.lang.AssertionError
patterntesting.runtime.junit.Failures
public final class Failures
For the ObjectTester and other tester classes we need a chance to collect the thrown Assertions and throw it at the end of a combined or complex check.
| Constructor Summary | |
|---|---|
Failures()
|
|
| Method Summary | |
|---|---|
void |
add(Class<?> clazz,
AssertionError error)
Adds the given class and error to the internal error colllection. |
Dictionary<Class<?>,AssertionError> |
getErrors()
Gets the errors. |
String |
getMessage()
Gets the message. |
boolean |
hasErrors()
Checks for errors. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Failures()
| Method Detail |
|---|
public void add(Class<?> clazz,
AssertionError error)
clazz - the clazzerror - the errorpublic Dictionary<Class<?>,AssertionError> getErrors()
public boolean hasErrors()
public String getMessage()
getMessage in class ThrowableThrowable.getMessage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||