3233343536373839404142
BookingValidator book = new BookingValidator(); Errors error = null; book.validate(booking, error); } public void testValidateNotNullone() throws SecurityException, NoSuchMethodException{
4748495051525354555657
errors.reject("errors.endGreatBegin","errors.EndGreatBegin"); replay(errors); book.validate(booking1, errors); verify(errors); }
6465666768697071727374
errors.reject("errors.BeginGreatToday","errors.BeginGreatToday"); replay(errors); book.validate(booking2, errors); verify(errors); }