org.finra.jtaf.core.utilities
Class CompositeDataComparator
java.lang.Object
org.finra.jtaf.core.utilities.CompositeDataComparator
public class CompositeDataComparator
- extends Object
Utility class to perform comparison of lists and maps
Method Summary |
void |
compareList(String title,
String element,
List<?> expList,
List<?> actualList)
|
void |
compareMap(String title,
String element,
Map<?,?> expComp,
Map<?,?> actualComp)
|
void |
compareObject(String title,
String element,
Object expected,
Object actual)
|
boolean |
getAccumulateErrors()
Gets the accumulate errors flag |
List<String> |
getErrorList()
|
void |
setAccumulateErrors(boolean accumulateErrors)
Sets the accumulate errors flag |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompositeDataComparator
public CompositeDataComparator()
CompositeDataComparator
public CompositeDataComparator(boolean accumulateErrors)
compareMap
public void compareMap(String title,
String element,
Map<?,?> expComp,
Map<?,?> actualComp)
compareList
public void compareList(String title,
String element,
List<?> expList,
List<?> actualList)
compareObject
public void compareObject(String title,
String element,
Object expected,
Object actual)
getErrorList
public List<String> getErrorList()
setAccumulateErrors
public void setAccumulateErrors(boolean accumulateErrors)
- Sets the accumulate errors flag
- Parameters:
accumulateErrors
- determines if the comparator will throw
an exception with errors found, or accumulate them for later reporting
getAccumulateErrors
public boolean getAccumulateErrors()
- Gets the accumulate errors flag
- Returns:
- the accumulate errors flag
Copyright © 2014. All rights reserved.