-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAccessibilityTest.java
More file actions
93 lines (84 loc) · 2.77 KB
/
AccessibilityTest.java
File metadata and controls
93 lines (84 loc) · 2.77 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 accessibility;
/**
* Class that creates AccessibilityTest objects
* and includes accessor methods for its fields
* @author Stewart Lovell
* 9/29/2022
*/
public class AccessibilityTest {
private final String category;
private final String description;
private final String googleResult;
private final String waveResult;
private final String sortsiteResult;
private final String aslintResult;
/**
* Constructor for the AccessibilityTest class, takes five different Strings as parameters
* @param category - The category of the test
* @param googleResult - Google's test result
* @param waveResult - WAVE's test result
* @param sortsiteResult - SortSite's test result
* @param aslintResult - ASLint's test result
* @param description - The description of the test/result
*/
public AccessibilityTest(String category, String googleResult, String waveResult, String sortsiteResult, String aslintResult, String description) {
this.category = category;
this.description = description;
this.googleResult = googleResult;
this.waveResult = waveResult;
this.sortsiteResult = sortsiteResult;
this.aslintResult = aslintResult;
}
/**
* Getter method for the category of the test
* @return - The category of the test
*/
public String getCategory() {
return category;
}
/**
* Getter method for the description of the test/result
* @return - The description of the test/result
*/
public String getDescription() {
return description;
}
/**
* Getter method for Google's test result
* @return - Google's test result
*/
public String getGoogleResult() {
return googleResult;
}
/**
* Getter method for WAVE's test result
* @return - WAVE's test result
*/
public String getWaveResult() {
return waveResult;
}
/**
* Getter method for SortSite's test result
* @return - SortSite's test result
*/
public String getSortsiteResult() {
return sortsiteResult;
}
/**
* Getter method for ASLint's test result
* @return - ASLint's test result
*/
public String getAslintResult() {
return aslintResult;
}
/**
* toString method for the AccessibilityTest class
* @return - String representation of an AccessibilityTest object
*/
@Override
public String toString() {
return getCategory() + ": " + getDescription() +
" Google: " + getGoogleResult() + " WAVE: " + getWaveResult()
+ " SortSite: " + getSortsiteResult() + " ASLint: " + getAslintResult();
}
}