测试withSpecialPath withAlgorithmEnum withA withB方法
()
| 63 | * 测试withSpecialPath withAlgorithmEnum withA withB方法 |
| 64 | */ |
| 65 | @Test |
| 66 | public void diff4() { |
| 67 | String str1 = "{\"a\":null}"; |
| 68 | String str2 = "{\"a\":\"\"}"; |
| 69 | JsonElement a = new JsonParser().parse(str1); |
| 70 | JsonElement b = new JsonParser().parse(str2); |
| 71 | List<String> specialPath = new ArrayList<>(); |
| 72 | List<Result> diff = new Diff().withNoisePahList(null).withSpecialPath(specialPath).withAlgorithmEnum(AlgorithmEnum.SIMLAR_ARRAY_AND_LEFTJOIN_OBJECT).diffElement(a, b); |
| 73 | assertEquals(ResultConvertUtil.TYPE_MODIFY, diff.get(0).getDiffType()); |
| 74 | } |
| 75 | |
| 76 | /** |
| 77 | * 测试withObjectAlgorithm withArrayAlgorithm withPrimitiveAlgorithm withNullAlgorithm withOtherAlgorithm方法 |
nothing calls this directly
no test coverage detected