|Constructor and Description|
Creates a new instance.
|Modifier and Type||Method and Description|
Appends the expected data model objects.
Verifies the input sequence and returns diagnostics.
Verifies the rest of expected data objects.
public VerifyEngine addExpected(DataModelSource expected) throws IOException
If this already saw data model objects with same key in the expected input, the old one will be replaced with in input. Note that the expected input will be closed.
public List<Difference> inspectInput(DataModelSource input) throws IOException
First, this engine search an expected model object corresponded to each input object using their
If there are the such pairs, then this engine invokes
for each pair, and then removes the expected data.
Otherwise, this engine invokes
for each input without corresponding expected object.
If there are any differences between expected objects and input objects, the resulting list includes them.
input- the input to verify
IOException- if failed to obtain model objects from the input, or the input key is already presented
IllegalArgumentException- if some parameters were
public List<Difference> inspectRest()
This engine invokes
for each expected data objects, and clears them from this engine.
Note that the rest of expected data mean "expected but appeared in input."
You should invoke
inspectInput(DataModelSource) for each input before invoke this method.
Copyright © 2011–2018 Asakusa Framework Team. All rights reserved.