1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package edu.sampleu.demo.kitchensink;
17
18 import java.io.Serializable;
19 import java.util.ArrayList;
20 import java.util.HashMap;
21 import java.util.List;
22 import java.util.Map;
23
24
25
26
27
28
29 public class UITestObject implements Serializable {
30 private static final long serialVersionUID = -7525378097732916411L;
31
32 private String field1;
33 private String field2;
34 private String field3;
35 private String field4;
36
37 private Map<String, Object> remoteFieldValuesMap;
38
39 private List<UITestObject> subList = new ArrayList<UITestObject>();
40
41 public UITestObject() {
42 remoteFieldValuesMap = new HashMap<String, Object>();
43 remoteFieldValuesMap.put("remoteField1", "Apple");
44 remoteFieldValuesMap.put("remoteField2", "Banana");
45 remoteFieldValuesMap.put("remoteField3", true);
46 remoteFieldValuesMap.put("remoteField4", "Fruit");
47 }
48
49 public UITestObject(String field1, String field2, String field3, String field4) {
50 this.field1 = field1;
51 this.field2 = field2;
52 this.field3 = field3;
53 this.field4 = field4;
54
55 remoteFieldValuesMap = new HashMap<String, Object>();
56 remoteFieldValuesMap.put("remoteField1", "Apple");
57 remoteFieldValuesMap.put("remoteField2", "Banana");
58 remoteFieldValuesMap.put("remoteField3", true);
59 remoteFieldValuesMap.put("remoteField4", "Fruit");
60
61 }
62
63
64
65
66 public String getField1() {
67 return this.field1;
68 }
69
70
71
72
73 public void setField1(String field1) {
74 this.field1 = field1;
75 }
76
77
78
79
80 public String getField2() {
81 return this.field2;
82 }
83
84
85
86
87 public void setField2(String field2) {
88 this.field2 = field2;
89 }
90
91
92
93
94 public String getField3() {
95 return this.field3;
96 }
97
98
99
100
101 public void setField3(String field3) {
102 this.field3 = field3;
103 }
104
105
106
107
108 public String getField4() {
109 return this.field4;
110 }
111
112
113
114
115 public void setField4(String field4) {
116 this.field4 = field4;
117 }
118
119
120
121
122 public void setSubList(List<UITestObject> subList) {
123 this.subList = subList;
124 }
125
126
127
128
129 public List<UITestObject> getSubList() {
130 return subList;
131 }
132
133 public Map<String, Object> getRemoteFieldValuesMap() {
134 return remoteFieldValuesMap;
135 }
136
137 public void setRemoteFieldValuesMap(Map<String, Object> remoteFieldValuesMap) {
138 this.remoteFieldValuesMap = remoteFieldValuesMap;
139 }
140
141 }