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
|
abstract void |
allSatisfied(List<Capture<?>> captures)
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 String |
formatList(List<?> list) |
protected static ComparatorService |
getDefaultComparatorService()
Default comparator service
|
protected org.ikasan.testharness.flow.expectation.service.AbstractListExpectation.ExpectationDifference |
getExpectationDifference(List<AbstractListExpectation.DefaultExpectation> expectations,
List<Capture<?>> captures) |
<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.
|
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 allSatisfied(List<Capture<?>> captures)
allSatisfied in interface FlowExpectationcaptures - Ordered list of captured FlowElement invocationsAssertionError - if all expected invocations not satisfiedprotected org.ikasan.testharness.flow.expectation.service.AbstractListExpectation.ExpectationDifference getExpectationDifference(List<AbstractListExpectation.DefaultExpectation> expectations, List<Capture<?>> captures)
Copyright © 2007-2020 Ikasan. All Rights Reserved.