public class PostConditionCheckGenerator extends TestCheckGenerator
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<ExecutableBooleanExpression> |
postConditions
The post-conditions.
|
| Constructor and Description |
|---|
PostConditionCheckGenerator(java.util.List<ExecutableBooleanExpression> postConditions)
Create a
TestCheckGenerator to test the given post-condition. |
| Modifier and Type | Method and Description |
|---|---|
private java.lang.Object[] |
addNullReceiver(java.lang.Object[] values) |
TestChecks<?> |
generateTestChecks(ExecutableSequence eseq)
Tests all of the post-conditions against the values in the given
ExecutableSequence,
and if the condition is not satisfied returns a ErrorRevealingChecks. |
hasGeneratorprivate final java.util.List<ExecutableBooleanExpression> postConditions
public PostConditionCheckGenerator(java.util.List<ExecutableBooleanExpression> postConditions)
TestCheckGenerator to test the given post-condition.postConditions - the post-condition to be tested in generated TestCheckspublic TestChecks<?> generateTestChecks(ExecutableSequence eseq)
ExecutableSequence,
and if the condition is not satisfied returns a ErrorRevealingChecks.
Note that the operation input values passed to the post-condition are the values post-execution.
generateTestChecks in class TestCheckGeneratoreseq - the sequence for which checks are generatedErrorRevealingChecks with a PostConditionCheck if the
post-condition fails on the sequence, an null otherwiseprivate java.lang.Object[] addNullReceiver(java.lang.Object[] values)