Search in sources :

Example 31 with Errors

use of org.mifos.platform.validations.Errors in project head by mifos.

the class SqlCollectionSheetReportParameterFormTest method testValidateAcceptsDateEvenIfItHasExtraCharactersAtTheEnd.

public void testValidateAcceptsDateEvenIfItHasExtraCharactersAtTheEnd() {
    SqlCollectionSheetReportParameterForm form = new SqlCollectionSheetReportParameterForm("1", "1", "1", "23/06/2008ss");
    Errors errorsMock = createMock(Errors.class);
    replay(errorsMock);
    form.validate(errorsMock);
    verify(errorsMock);
}
Also used : Errors(org.mifos.platform.validations.Errors)

Aggregations

Errors (org.mifos.platform.validations.Errors)31 Date (java.util.Date)10 Test (org.junit.Test)10 ArrayList (java.util.ArrayList)8 LocalDate (org.joda.time.LocalDate)7 RepaymentScheduleInstallment (org.mifos.accounts.loan.util.helpers.RepaymentScheduleInstallment)7 BigDecimal (java.math.BigDecimal)6 ActionErrors (org.apache.struts.action.ActionErrors)4 OriginalScheduleInfoDto (org.mifos.accounts.loan.business.service.OriginalScheduleInfoDto)4 LoanCreationInstallmentDto (org.mifos.dto.domain.LoanCreationInstallmentDto)4 ErrorEntry (org.mifos.platform.validations.ErrorEntry)4 LoanBO (org.mifos.accounts.loan.business.LoanBO)3 LoanOfferingBO (org.mifos.accounts.productdefinition.business.LoanOfferingBO)3 CustomerBO (org.mifos.customers.business.CustomerBO)3 Locale (java.util.Locale)2 DateTime (org.joda.time.DateTime)2 Ignore (org.junit.Ignore)2 LoanAccountActionForm (org.mifos.accounts.loan.struts.actionforms.LoanAccountActionForm)2 LoanScheduleDto (org.mifos.dto.screen.LoanScheduleDto)2 Money (org.mifos.framework.util.helpers.Money)2