public abstract class AbstractListExpectation extends Object implements FlowExpectation
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractListExpectation.DefaultExpectation<T>
Default expectation allows for anything to be provided as an expectation.
|
| Modifier and Type | Field and Description |
|---|---|
protected ComparatorService |
comparatorService
comparator service for expectations
|
protected List<AbstractListExpectation.DefaultExpectation> |
expectations |
| Constructor and Description |
|---|
AbstractListExpectation() |
AbstractListExpectation(ComparatorService comparatorService)
Constructor allowing an alternate comparator service.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addExpectation(AbstractListExpectation.DefaultExpectation<?> defaultExpectation,
String description)
Append the expectation to the already defined expectations
|
void |
allSatisfied()
Have all expectations been satisfied
|
<T> void |
expectation(T expectation)
Add an Expectation to the ordered expectations
|
<T> void |
expectation(T expectation,
ExpectationComparator<?,?> expectationComparator)
Add an Expectation and specific user defined comparator to the ordered expectations
|
<T> void |
expectation(T expectation,
ExpectationComparator<?,?> expectationComparator,
String description)
Add an Expectation and specific user defined comparator to the ordered expectations
and provide a specific description to help identity this expectation at runtime.
|
<T> void |
expectation(T expectation,
String description)
Add an Expectation to the ordered expectations and provide a description
to help identify this expectation at runtime.
|
protected static ComparatorService |
getDefaultComparatorService()
Default comparator service
|
<T> void |
ignore(T expectation)
Add an ignore operation to the expectations order
|
<T> void |
ignore(T expectation,
String description)
Add an ignore operation to the expectations order and provide
a description to help identify this expectation at runtime.
|
abstract void |
isSatisfied(Capture<?> actual)
Is this actual operation satisfied with a corresponding expectation
|
protected List<AbstractListExpectation.DefaultExpectation> expectations
protected ComparatorService comparatorService
public AbstractListExpectation()
public AbstractListExpectation(ComparatorService comparatorService)
comparatorService - protected static ComparatorService getDefaultComparatorService()
public <T> void expectation(T expectation,
ExpectationComparator<?,?> expectationComparator)
expectation in interface FlowExpectationexpectation - expectationComparator - public <T> void expectation(T expectation,
ExpectationComparator<?,?> expectationComparator,
String description)
expectation in interface FlowExpectationexpectation - expectationComparator - description - public <T> void expectation(T expectation)
expectation in interface FlowExpectationexpectation - public <T> void expectation(T expectation,
String description)
expectation in interface FlowExpectationexpectation - description - public <T> void ignore(T expectation)
ignore in interface FlowExpectationexpectation - public <T> void ignore(T expectation,
String description)
ignore in interface FlowExpectationexpectation - description - protected void addExpectation(AbstractListExpectation.DefaultExpectation<?> defaultExpectation, String description)
defaultExpectation - description - public abstract void isSatisfied(Capture<?> actual)
isSatisfied in interface FlowExpectationactual - public void allSatisfied()
allSatisfied in interface FlowExpectationCopyright © 2007-2017 Ikasan. All Rights Reserved.