MCPcopy Index your code
hub / github.com/LianjiaTech/json-diff / getCaseList

Method getCaseList

src/test/java/cases/ShowCase.java:44–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42
43
44 private static List<Pair<String, String>> getCaseList() {
45 List<Pair<String, String>> caseList = Lists.newArrayList();
46
47 Pair<String, String> case0 = Pair.of(
48 " {}",
49 "{}"
50 );
51
52 Pair<String, String> case1 = Pair.of(
53 " {\"coord1nates\": [[100.0, 1.0],[100.0, 1.0],[100.0, 1.0]]}",
54 "{\"coord1nates\": [[100.0, 0.0],[100.0, 1.0],[100.0, 1.0]]}"
55 );
56
57 Pair<String, String> case2 = Pair.of(
58 "{\"code\":5,\"test\":7,\"data\":{}, \"data1\":5, \"data2\":{\"data\":5}}",
59 "{\"code\":6,\"test\":8,\"data\":7, \"data1\":null, \"data2\":5}"
60 );
61
62 Pair<String, String> case3 = Pair.of(
63 " {\"coord1nates\": [ 8.0, 2.0, 1.0, 1.0, 1.0 ],\"coord1nates1\": 8.0}",
64 "{\"coord1nates\": [ 8.0, 4.0, 3.0, 2.0, 5.0 ],\"coord1nates1\": 8.0}"
65 );
66
67 Pair<String, String> case4 = Pair.of(
68 " {\"coord1nates\": 1, code : {\"coord1nates\": 3}}",
69 " {\"coord1nates\": 2, code : {\"coord1nates\": 4}}"
70 );
71
72
73 Pair<String, String> case5 = Pair.of(
74 "[{\"coord1nate\": [ 2.0, 2.0, 1.0, 1.0 ],\"A\":2 }] ",
75 "[{\"coord1nates\": [ 4.0, 2.0, 1.0, 2.0 ],\"A\":2}] "
76 );
77
78 Pair<String, String> case6 = Pair.of(
79 "[ \"1.0\",\"3.0\",\"2.0\" ]",
80 "[ \"4.0\",\"1.0\",\"2.0\" ]"
81 );
82
83 Pair<String, String> case7 = Pair.of(
84 "{\"A\":2}",
85 "{\"B\":6}"
86 );
87
88 Pair<String, String> case8 = Pair.of(
89 "{ \"name\": [{\"coord1nate\": [ {\"A\":2,\"B\":5}, {\"A\":2,\"B\":5}, {\"A\":1,\"B\":2}] } ] } ",
90 "{ \"name\": [{\"coord1nate\": [ {\"A\":2,\"B\":5}, {\"A\":1,\"B\":3}, {\"A\":9,\"B\":8} ]} ] } "
91 );
92
93 Pair<String, String> case9 = Pair.of(
94 "[{\"a\":7,\"b\":5,\"c\":6},{\"a\":4,\"b\":8,\"c\":9}]"
95 , "[{\"a\":1,\"b\":2,\"c\":3},{\"a\":4,\"b\":5,\"c\":6},{\"a\":7,\"b\":8,\"c\":9}]"
96 );
97
98 caseList.addAll(Lists.newArrayList(case0, case1, case2, case3, case4, case5, case6, case7, case8, case9));
99 return caseList;
100 }
101}

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected