Package randoop.test
Class InvalidExceptionCheck
java.lang.Object
randoop.test.ExceptionCheck
randoop.test.InvalidExceptionCheck
- All Implemented Interfaces:
Check
An
InvalidExceptionCheck
represents the occurrence of an exception tagged as an invalid
behavior during Check
generation.-
Field Summary
Fields inherited from class randoop.test.ExceptionCheck
exception, statementIndex
-
Constructor Summary
ConstructorDescriptionInvalidExceptionCheck
(Throwable exception, int statementIndex, String catchClassName) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Appends code for catch block behavior corresponding to expected exception.protected void
Appends code to follow the statement throwing expected exception in try block.Methods inherited from class randoop.test.ExceptionCheck
equals, getException, getExceptionName, hashCode, toCodeStringPostStatement, toCodeStringPreStatement, toString
-
Constructor Details
-
InvalidExceptionCheck
-
-
Method Details
-
appendCatchBehavior
Description copied from class:ExceptionCheck
Appends code for catch block behavior corresponding to expected exception.- Specified by:
appendCatchBehavior
in classExceptionCheck
- Parameters:
b
- the string builder to which code text is to be added
-
appendTryBehavior
Description copied from class:ExceptionCheck
Appends code to follow the statement throwing expected exception in try block.- Specified by:
appendTryBehavior
in classExceptionCheck
- Parameters:
b
- the string builder to which code text is added
-