* The expected value.
*/
public void shouldHaveValue(String expectedValue) {
List actuals = new ArrayList();
for (Iterator i = fields.iterator(); i.hasNext();) {
FormField form = (FormField) i.next();
if (expectedValue.equals(form.getValue())) {
return;
} else {
actuals.add(form.getValue());
}
}
Assert.fail("Field '" + fieldName + "' does not have value '" + expectedValue + "': "
+ actuals);
}