测试withObjectAlgorithm withArrayAlgorithm withPrimitiveAlgorithm withNullAlgorithm withOtherAlgorithm方法
()
| 77 | * 测试withObjectAlgorithm withArrayAlgorithm withPrimitiveAlgorithm withNullAlgorithm withOtherAlgorithm方法 |
| 78 | */ |
| 79 | @Test |
| 80 | public void diff5() { |
| 81 | String str1 = "{\"a\":null}"; |
| 82 | String str2 = "{\"a\":null}"; |
| 83 | JsonElement a = new JsonParser().parse(str1); |
| 84 | JsonElement b = new JsonParser().parse(str2); |
| 85 | List<String> specialPath = new ArrayList<>(); |
| 86 | List<Result> diff = new Diff().withNoisePahList(null).withSpecialPath(specialPath) |
| 87 | .withObjectComparator(new SimpleObjectComparator()).withArrayComparator(new SimilarArrayComparator()) |
| 88 | .withPrimitiveAlgorithm(new DefaultPrimitiveComparator()).withNullComparator(new DefaultNullComparator()) |
| 89 | .withOtheComparator(new DefaultOtherComparator()).diffElement(a, b); |
| 90 | assertEquals(0,diff.size()); |
| 91 | } |
| 92 | |
| 93 | /** |
| 94 | * 测试withObjectAlgorithm withArrayAlgorithm withPrimitiveAlgorithm withNullAlgorithm withOtherAlgorithm方法 |
nothing calls this directly
no test coverage detected