MockData.java
2.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
package com.skua.common.report;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class MockData {
public static Map<String,List<Map<String,String>>> getData(){
Map dsMap = new HashMap();
List<Map<String,String>> list = new ArrayList<Map<String,String>>();
Map<String,String> map1 = new HashMap<String,String>();
map1.put("A", "10");
map1.put("B", "20");
map1.put("C", "30");
map1.put("D", "ds-14");
map1.put("E", "ds-15");
map1.put("F", "ds-16");
map1.put("G", "ds-17");
Map<String,String> map2 = new HashMap<String,String>();
map2.put("A", "ds-21");
map2.put("B", "ds-22");
map2.put("C", "ds-23");
map2.put("D", "ds-24");
map2.put("E", "ds-25");
map2.put("F", "ds-26");
map2.put("G", "ds-27");
Map<String,String> map3 = new HashMap<String,String>();
map3.put("A", "ds-31");
map3.put("B", "ds-32");
map3.put("C", "ds-33");
map3.put("D", "ds-34");
map3.put("E", "ds-35");
map3.put("F", "ds-36");
map3.put("G", "ds-37");
list.add(map1);list.add(map2);list.add(map3);
dsMap.put("ds", list);
List<Map<String,String>> list2 = new ArrayList<Map<String,String>>();
Map<String,String> map12 = new HashMap<String,String>();
map12.put("A", "ds1-11");
map12.put("B", "ds1-12");
map12.put("C", "ds1-13");
map12.put("D", "ds1-14");
map12.put("E", "ds1-15");
map12.put("F", "ds1-16");
map12.put("G", "ds1-17");
list2.add(map12);
dsMap.put("ds1", list2);
List<Map<String,String>> list3 = new ArrayList<Map<String,String>>();
Map<String,String> map13 = new HashMap<String,String>();
map13.put("A", "2020-05-15");
map13.put("B", "11232.34");
map13.put("C", "345.32");
map13.put("D", "我就试试");
list3.add(map13);
Map<String,String> map23 = new HashMap<String,String>();
map23.put("A", "2020-05-16");
map23.put("B", "15632.34");
map23.put("C", "319.26");
map23.put("D", "我就试试");
list3.add(map23);
Map<String,String> map33 = new HashMap<String,String>();
map33.put("A", "2020-05-16");
map33.put("B", "52313.34");
map33.put("C", "846.62");
map33.put("D", "我就试试");
list3.add(map33);
Map<String,String> map43 = new HashMap<String,String>();
map43.put("A", "2020-05-17");
map43.put("B", "52313.34");
map43.put("C", "846.62");
map43.put("D", "我就试试");
list3.add(map43);
Map<String,String> map53 = new HashMap<String,String>();
map53.put("A", "2020-05-18");
map53.put("B", "27313.34");
map53.put("C", "746.52");
map53.put("D", "我就试试");
list3.add(map53);
Map<String,String> map63 = new HashMap<String,String>();
map63.put("A", "2020-05-18");
map63.put("B", "52313.34");
map63.put("C", "846.62");
map63.put("D", "我就试试");
list3.add(map63);
dsMap.put("ds2", list3);
return dsMap;
}
}