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 Datafield
s 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) |
skippedComparison
public int differenceFound(Difference difference)
differenceFound
in interface DifferenceListener
differenceFound
in class DifferenceHandler
Copyright © 2011–2020 aiticon GmbH. All rights reserved.