Package randoop.test
Class PostConditionCheck
java.lang.Object
randoop.test.PostConditionCheck
- All Implemented Interfaces:
Check
Represents the observed failure of a post-condition.
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Variable[]
The input variables for the condition.private final List<ExecutableBooleanExpression>
The post-condition. -
Constructor Summary
ConstructorDescriptionPostConditionCheck
(List<ExecutableBooleanExpression> postConditions, List<Variable> inputVariables) Creates aPostConditionCheck
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the list ofExecutableBooleanExpression
objects for thisPostConditionCheck
.int
hashCode()
Returns a string of Java source code to be emitted after a statement containing this check.Returns a string of Java source code to be emitted before a statement containing this check.toString()
-
Field Details
-
postConditions
The post-condition. -
inputVariables
The input variables for the condition.
-
-
Constructor Details
-
PostConditionCheck
public PostConditionCheck(List<ExecutableBooleanExpression> postConditions, List<Variable> inputVariables) Creates aPostConditionCheck
- Parameters:
postConditions
- the post-condition for this checkinputVariables
- the input variables for this condition check
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
toString
-
toCodeStringPreStatement
Description copied from interface:Check
Returns a string of Java source code to be emitted before a statement containing this check.- Specified by:
toCodeStringPreStatement
in interfaceCheck
- Returns:
- the string to be included before the statement
-
toCodeStringPostStatement
Description copied from interface:Check
Returns a string of Java source code to be emitted after a statement containing this check.- Specified by:
toCodeStringPostStatement
in interfaceCheck
- Returns:
- the string to be included following the statement
-
getPostConditions
Get the list ofExecutableBooleanExpression
objects for thisPostConditionCheck
.- Returns:
- the
ExecutableBooleanExpression
list for this check
-