|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jmlspecs.jmlunit.strategies.ConstructorFailed
A class that stores an exception that occured during test suite construction as a JUnit test, and when the test is run makes the problem a failure.
| Field Summary | |
private Throwable |
cause
The problem that occurred. |
private String |
failmsg
The failure message for failures raised by this class. |
| Constructor Summary | |
ConstructorFailed(Throwable ex)
Initialize this object |
|
| Method Summary | |
int |
countTestCases()
|
void |
run(junit.framework.TestResult result)
Add a failure corresponding to cause to the result object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private final Throwable cause
private final String failmsg
| Constructor Detail |
public ConstructorFailed(Throwable ex)
| Method Detail |
public int countTestCases()
countTestCases in interface junit.framework.Testpublic void run(junit.framework.TestResult result)
run in interface junit.framework.Test
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||