|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectExpectedExceptionCheck
public class ExpectedExceptionCheck extends Object implements Check
A checker that checks for an expected exception from a method call.
| Constructor and Description |
|---|
ExpectedExceptionCheck(Class<? extends Throwable> exception_class,
int statementIdx)
|
ExpectedExceptionCheck(Throwable exception,
int statementIdx)
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
|
boolean |
evaluate(Execution execution)
Evaluates this check on the given unfolding execution of a sequence, returning true if the check succeeded, and false
otherwise. |
String |
get_id()
Returns a unique string identifier for the check. |
int |
get_stmt_no()
return the offset of this statement in the sequence |
String |
get_value()
Returns the class of the exception thrown |
int |
hashCode()
|
String |
toCodeStringPostStatement()
The "catch" half of the try-catch wrapper. |
String |
toCodeStringPreStatement()
The "try" half of the try-catch wrapper. |
String |
toString()
|
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ExpectedExceptionCheck(Throwable exception,
int statementIdx)
public ExpectedExceptionCheck(Class<? extends Throwable> exception_class,
int statementIdx)
| Method Detail |
|---|
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic String get_id()
Check
get_id in interface Checkpublic String get_value()
get_value in interface Checkpublic int get_stmt_no()
get_stmt_no in interface Checkpublic String toCodeStringPreStatement()
toCodeStringPreStatement in interface Checkpublic String toCodeStringPostStatement()
toCodeStringPostStatement in interface Checkpublic boolean evaluate(Execution execution)
Checktrue if the check succeeded, and false
otherwise.
evaluate in interface Check
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||