@@ -68,7 +68,7 @@ public void testNameLessCharacters() throws IOException {
68
68
zipInputText .setText ("12345" );
69
69
HtmlPage result = button .click ();
70
70
HtmlSpan span = (HtmlSpan ) result .getElementById ("nameMessage" );
71
- assertEquals ("At least 3 characters" , span .asText ());
71
+ assertEquals ("nameInputText: At least 3 characters" , span .asText ());
72
72
}
73
73
74
74
@ Test
@@ -88,7 +88,7 @@ public void testAgeLessThan() throws IOException {
88
88
zipInputText .setText ("12345" );
89
89
HtmlPage result = button .click ();
90
90
HtmlSpan span = (HtmlSpan ) result .getElementById ("ageMessage" );
91
- assertEquals ("must be greater than or equal to 18" , span .asText ());
91
+ assertEquals ("ageInputText: must be greater than or equal to 18" , span .asText ());
92
92
}
93
93
94
94
@ Test
@@ -118,7 +118,7 @@ public void testAgeGreaterThan() throws IOException {
118
118
zipInputText .setText ("12345" );
119
119
HtmlPage result = button .click ();
120
120
HtmlSpan span = (HtmlSpan ) result .getElementById ("ageMessage" );
121
- assertEquals ("must be less than or equal to 25" , span .asText ());
121
+ assertEquals ("ageInputText: must be less than or equal to 25" , span .asText ());
122
122
}
123
123
124
124
@ Test
@@ -128,7 +128,7 @@ public void testZipAlphabets() throws IOException {
128
128
zipInputText .setText ("abcde" );
129
129
HtmlPage result = button .click ();
130
130
HtmlSpan span = (HtmlSpan ) result .getElementById ("zipMessage" );
131
- assertEquals ("must match \" [0-9]{5}\" " , span .asText ());
131
+ assertEquals ("zipInputText: must match the following regular expression: [0-9]{5}" , span .asText ());
132
132
}
133
133
134
134
@ Test
@@ -138,7 +138,7 @@ public void testZipLessNumbers() throws IOException {
138
138
zipInputText .setText ("1234" );
139
139
HtmlPage result = button .click ();
140
140
HtmlSpan span = (HtmlSpan ) result .getElementById ("zipMessage" );
141
- assertEquals ("must match \" [0-9]{5}\" " , span .asText ());
141
+ assertEquals ("zipInputText: must match the following regular expression: [0-9]{5}" , span .asText ());
142
142
}
143
143
144
144
@ Test
@@ -148,7 +148,7 @@ public void testZipMoreNumbers() throws IOException {
148
148
zipInputText .setText ("123456" );
149
149
HtmlPage result = button .click ();
150
150
HtmlSpan span = (HtmlSpan ) result .getElementById ("zipMessage" );
151
- assertEquals ("must match \" [0-9]{5}\" " , span .asText ());
151
+ assertEquals ("zipInputText: must match the following regular expression: [0-9]{5}" , span .asText ());
152
152
}
153
153
154
154
@ Test
0 commit comments