|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectNoExceptionCheck
public class NoExceptionCheck extends Object implements Check
Checks that no exception is thrown after a given statement in a sequence.
| Constructor and Description |
|---|
NoExceptionCheck(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()
Returns the offset in the sequence of this check |
String |
get_value()
Returns a short string that can be used to uniquely identify this check. |
int |
hashCode()
|
String |
toCodeStringPostStatement()
Returns the empty string: there is no code associated with this check (if an exception occurs, it will be reported by JUnit). |
String |
toCodeStringPreStatement()
Returns a string of Java source code to be emitted before a statement containing this check. |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NoExceptionCheck(int statementIdx)
| Method Detail |
|---|
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String get_value()
Check
get_value in interface Checkpublic int get_stmt_no()
Check
get_stmt_no in interface Checkpublic String get_id()
Check
get_id in interface Checkpublic String toCodeStringPostStatement()
toCodeStringPostStatement in interface Checkpublic String toCodeStringPreStatement()
Check
toCodeStringPreStatement 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 | ||||||||