public class Diffy extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Diffy.Result
Contains the unmatched fields from the Diffy operation.
|
| Constructor and Description |
|---|
Diffy() |
Diffy(JsonUtil jsonUtil)
Pass in a custom jsonUtil to use for the cloneJson method.
|
| Modifier and Type | Method and Description |
|---|---|
Diffy.Result |
diff(Object expected,
Object actual) |
protected Diffy.Result |
diffHelper(Object expected,
Object actual) |
protected Diffy.Result |
diffList(List<Object> expected,
List<Object> actual) |
protected Diffy.Result |
diffMap(Map<String,Object> expected,
Map<String,Object> actual) |
protected Diffy.Result |
diffScalar(Object expected,
Object actual) |
protected boolean |
scalarEquals(Object expected,
Object actual)
Allow subclasses to handle things like Long 0 versus Int 0.
|
public Diffy()
public Diffy(JsonUtil jsonUtil)
public Diffy.Result diff(Object expected, Object actual)
protected Diffy.Result diffHelper(Object expected, Object actual)
protected Diffy.Result diffList(List<Object> expected, List<Object> actual)
protected Diffy.Result diffScalar(Object expected, Object actual)
Copyright © 2023. All rights reserved.