public class DateFieldDifferenceHandler extends DifferenceHandler
DateFieldDifferenceHandler that ignores the Difference in the value of a Datafield of type
FieldType.DATE. Useful if a Datasource contains dates that vary during test-execution, like the
creation-date of an entity.<field name="creationDate" type="date"> <value>2013-10-22</value> </field>and
<field name="creationDate" type="date"> <value>2012-09-21</value> </field>Note
DateFieldDifferenceHandler is getting applied to the whole document, ignoring every
Difference in the value of any Datafields of type FieldType.DATE. If a more precise
distinction is required, use XPathDifferenceHandler instead.RETURN_ACCEPT_DIFFERENCE, RETURN_IGNORE_DIFFERENCE_NODES_IDENTICAL, RETURN_IGNORE_DIFFERENCE_NODES_SIMILAR, RETURN_UPGRADE_DIFFERENCE_NODES_DIFFERENT| Constructor and Description |
|---|
DateFieldDifferenceHandler() |
| Modifier and Type | Method and Description |
|---|---|
int |
differenceFound(Difference difference) |
skippedComparisonpublic int differenceFound(Difference difference)
differenceFound in interface DifferenceListenerdifferenceFound in class DifferenceHandlerCopyright © 2011–2021 aiticon GmbH. All rights reserved.