Class AbstractExpectationBuilder<T,D>

java.lang.Object
org.qaddict.expectation.AbstractExpectationBuilder<T,D>
All Implemented Interfaces:
Described, Expectation<D>

public abstract class AbstractExpectationBuilder<T,D> extends Object implements Expectation<D>
  • Constructor Details

    • AbstractExpectationBuilder

      public AbstractExpectationBuilder(List<Expectation<? super D>> operands)
    • AbstractExpectationBuilder

      public AbstractExpectationBuilder()
  • Method Details

    • evaluate

      public EvaluationNode evaluate(D data)
      Description copied from interface: Expectation
      Evaluate the expectation on provided data. This method returns full detail of the evaluation. As various implementations can also compose partial expectations together, each of them may provide partial details, collected to full detail of description, what was happening during the validation.
      Specified by:
      evaluate in interface Expectation<T>
      Parameters:
      data - Validated data.
      Returns:
      EvaluationNode containing details of validation using this expectation in the subtree of this expectation.
    • description

      public Object description()
      Description copied from interface: Described
      Description of the defined expectation.
      Specified by:
      description in interface Described
      Returns:
      Object representing the expectation.
    • and

      public T and(Expectation<? super D> expectation)
    • and

      public <V> FluentTransformation<V,T> and(String name, Transformation<? super D,V> transformation)
    • and

      public <V> FluentTransformation<V,T> and(Transformation<? super D,V> transformation)
    • self

      protected abstract T self()