Class ValueRecorder

java.lang.Object
org.spockframework.runtime.ValueRecorder

public class ValueRecorder extends Object
Records the values in a condition.
Author:
Peter Niederwieser
  • Field Details

  • Constructor Details

    • ValueRecorder

      public ValueRecorder()
  • Method Details

    • reset

      public ValueRecorder reset()
    • record

      public Object record(int index, Object value)
      Records and returns the specified value. Hence an expression can be replaced with record(expression) without impacting evaluation of the expression.
    • realizeNas

      public Object realizeNas(int index, Object value)
      Materializes N/A values without recording a new value.
    • getValues

      public List<Object> getValues()