Skip to content

Commit 6c29061

Browse files
committed
Added User properties class
1 parent 7ddd971 commit 6c29061

File tree

3 files changed

+152
-0
lines changed

3 files changed

+152
-0
lines changed

src/test/java/selenium/context/Base.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import org.testng.annotations.Listeners;
99
import selenium.Application;
1010
import selenium.listeners.WebDriverListener;
11+
import selenium.testdata.file.FileLoaderService;
1112

1213
@Listeners(WebDriverListener.class)
1314
@SpringApplicationConfiguration(Application.class)

src/test/java/selenium/testdata/file/FileLoaderService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import org.springframework.core.io.Resource;
66
import org.springframework.core.io.ResourceLoader;
77
import org.springframework.stereotype.Service;
8+
import selenium.testdata.properties.User;
89

910
import java.io.IOException;
1011

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
package selenium.testdata.properties;
2+
3+
import org.apache.commons.lang3.builder.ToStringBuilder;
4+
5+
public class User {
6+
private String email;
7+
private String password;
8+
private String gender;
9+
private String firstname;
10+
private String lastname;
11+
private String address;
12+
private String zip;
13+
private String city;
14+
private String cardtype;
15+
private String cardnumber;
16+
private String expiremonth;
17+
private String expireyear;
18+
private String ccvnumber;
19+
private String country;
20+
private String telephone;
21+
22+
public String getPassword() {
23+
return password;
24+
}
25+
26+
public void setPassword(final String password) {
27+
this.password = password;
28+
}
29+
30+
public String getEmail() {
31+
return email;
32+
}
33+
34+
public void setEmail(final String email) {
35+
this.email = email;
36+
}
37+
38+
public String getGender() {
39+
return gender;
40+
}
41+
42+
public void setGender(final String gender) {
43+
this.gender = gender;
44+
}
45+
46+
public String getFirstname() {
47+
return firstname;
48+
}
49+
50+
public void setFirstname(final String firstname) {
51+
this.firstname = firstname;
52+
}
53+
54+
public String getLastname() {
55+
return lastname;
56+
}
57+
58+
public void setLastname(final String lastname) {
59+
this.lastname = lastname;
60+
}
61+
62+
public String getAddress() {
63+
return address;
64+
}
65+
66+
public void setAddress(String address) {
67+
this.address = address;
68+
}
69+
70+
public String getZip() {
71+
return zip;
72+
}
73+
74+
public void setZip(String zip) {
75+
this.zip = zip;
76+
}
77+
78+
public String getCity() {
79+
return city;
80+
}
81+
82+
public void setCity(String city) {
83+
this.city = city;
84+
}
85+
86+
public String getCardtype() {
87+
return cardtype;
88+
}
89+
90+
public void setCardtype(String cardtype) {
91+
this.cardtype = cardtype;
92+
}
93+
94+
public String getCardnumber() {
95+
return cardnumber;
96+
}
97+
98+
public void setCardnumber(String cardnumber) {
99+
this.cardnumber = cardnumber;
100+
}
101+
102+
public String getExpiremonth() {
103+
return expiremonth;
104+
}
105+
106+
public void setExpiremonth(String expiremonth) {
107+
this.expiremonth = expiremonth;
108+
}
109+
110+
public String getExpireyear() {
111+
return expireyear;
112+
}
113+
114+
public void setExpireyear(String expireyear) {
115+
this.expireyear = expireyear;
116+
}
117+
118+
public String getCcvnumber() {
119+
return ccvnumber;
120+
}
121+
122+
public void setCcvnumber(String ccvnumber) {
123+
this.ccvnumber = ccvnumber;
124+
}
125+
126+
public String getCountry() {
127+
return country;
128+
}
129+
130+
public void setCountry(String country) {
131+
this.country = country;
132+
}
133+
134+
public String getTelephone() {
135+
return telephone;
136+
}
137+
138+
public void setTelephone(String telephone) {
139+
this.telephone = telephone;
140+
}
141+
142+
@Override
143+
public String toString() {
144+
return new ToStringBuilder(this)
145+
.append("email", email)
146+
.append("password", password)
147+
.build();
148+
}
149+
}
150+

0 commit comments

Comments
 (0)