public class ConsistencyChecker extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
logResponseDataEnabled |
protected int |
maxInconsistencyLogLength |
| Constructor and Description |
|---|
ConsistencyChecker(String implementationName) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkConsistency(Object o1,
Object o2) |
boolean |
checkConsistency(Object legacyEntity,
Object lightblueEntity,
String methodName,
MethodCallStringifier callToLogInCaseOfInconsistency)
Check that objects are equal using org.skyscreamer.jsonassert library.
|
void |
setLogResponseDataEnabled(boolean logResponseDataEnabled) |
void |
setMaxInconsistencyLogLength(int length) |
protected int maxInconsistencyLogLength
protected boolean logResponseDataEnabled
public ConsistencyChecker(String implementationName)
public boolean checkConsistency(Object legacyEntity, Object lightblueEntity, String methodName, MethodCallStringifier callToLogInCaseOfInconsistency)
legacyEntity - object returned from legacy calllightblueEntity - object returned from lightblue callmethodName - the method namecallToLogInCaseOfInconsistency - the call including parameterspublic void setMaxInconsistencyLogLength(int length)
public void setLogResponseDataEnabled(boolean logResponseDataEnabled)
Copyright © 2016. All rights reserved.