assertFalse(vex.hasErrors());
}
public void testAddError() throws Exception
{
ValidationException vex = new ValidationException();
vex.addError("code.1", 1, 2);
vex.addError("code.2", 1, 2);
vex.addError("code.2", 2, 2);
assertEquals(3, vex.countErrors());
assertEquals(3, vex.getErrors().size());
assertTrue(vex.hasErrors());
assertTrue(vex.containsError("code.1", 1, 2));
}