Package org.qaddict.expectation
Class ExpectationBuilder<D>
java.lang.Object
org.qaddict.expectation.ExpectationBuilder<D>
- All Implemented Interfaces:
Described,Expectation<D>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<E extends D,V>
FluentTransformation<V, ExpectationBuilder<E>> and(String name, Transformation<? super E, V> transformation) <E extends D>
ExpectationBuilder<E> and(Expectation<? super E> expectation) <E extends D,V>
FluentTransformation<V, ExpectationBuilder<E>> and(Transformation<? super E, V> transformation) Description of the defined expectation.Evaluate the expectation on provided data.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.qaddict.Expectation
test
-
Constructor Details
-
ExpectationBuilder
-
ExpectationBuilder
public ExpectationBuilder()
-
-
Method Details
-
evaluate
Description copied from interface:ExpectationEvaluate 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:
evaluatein interfaceExpectation<D>- Parameters:
data- Validated data.- Returns:
- EvaluationNode containing details of validation using this expectation in the subtree of this expectation.
-
description
Description copied from interface:DescribedDescription of the defined expectation.- Specified by:
descriptionin interfaceDescribed- Returns:
- Object representing the expectation.
-
and
-
and
public <E extends D,V> FluentTransformation<V,ExpectationBuilder<E>> and(String name, Transformation<? super E, V> transformation) -
and
public <E extends D,V> FluentTransformation<V,ExpectationBuilder<E>> and(Transformation<? super E, V> transformation)
-