Package org.qaddict.expectation
Class AbstractExpectationBuilder<T,D>
java.lang.Object
org.qaddict.expectation.AbstractExpectationBuilder<T,D>
- All Implemented Interfaces:
Expectation<D>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<V> FluentTransformation<V, T> and(String name, Transformation<? super D, V> transformation) and(Expectation<? super D> expectation) <V> FluentTransformation<V, T> and(Transformation<? super D, V> transformation) Evaluate the expectation on provided data.protected abstract Tself()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
-
AbstractExpectationBuilder
-
AbstractExpectationBuilder
public AbstractExpectationBuilder()
-
-
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<T>- Parameters:
data- Validated data.- Returns:
- EvaluationNode containing details of validation using this expectation in the subtree of this expectation.
-
and
-
and
-
and
-
self
-