| org.unitils.reflectionassert.ReflectionComparatorMode
ReflectionComparatorMode | public enum ReflectionComparatorMode (Code) | | Modes defining how to compare two values.
No mode means strict comparison. Each of the modes specify some form of leniency when
comparing the values:
- ignore defaults: compare only fields (and inner values) that have a non default value (eg null) as exepected value
- lenient dates: do not compare actual date values, just that they both have a value or not
- lenient order: order is not important when comparing collections or arrays
The modes can be combined if needed.
author: Tim Ducheyne author: Filip Neven See Also: org.unitils.reflectionassert.ReflectionComparator |
Field Summary | |
Enum Constant | IGNORE_DEFAULTS | Enum Constant | LENIENT_DATES Do not compare the actual time/date value, just that both left-hand (expected) and right-hand side are null or not null. | Enum Constant | LENIENT_ORDER Do not compare the order of collections and arrays. |
IGNORE_DEFAULTS | Enum Constant IGNORE_DEFAULTS(Code) | | Ignore fields that do not have a default value for the left-hand (expected) side
|
LENIENT_DATES | Enum Constant LENIENT_DATES(Code) | | Do not compare the actual time/date value, just that both left-hand (expected) and right-hand side are null or not null.
|
LENIENT_ORDER | Enum Constant LENIENT_ORDER(Code) | | Do not compare the order of collections and arrays. Only check that all values of the left-hand (expected) side
collection or array are also contained in the right-hand (actual) side and vice versa.
|
|
|