Class ValueRecorder
java.lang.Object
org.codehaus.groovy.runtime.powerassert.ValueRecorder
Records values produced during evaluation of an assertion statement's truth
expression.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ValueRecorder
public ValueRecorder()
-
-
Method Details
-
clear
public void clear()Removes all values recorded for the current assertion evaluation. -
record
Records a value at the supplied anchor column and returns it unchanged.- Parameters:
value- the value produced while evaluating the assertionanchor- the 1-based column in the normalized assertion text, or a non-positive value if the position is unknown- Returns:
value
-
getValues
Returns the recorded values in recording order.- Returns:
- the live list of recorded values
-