Search in sources :

Example 1 with SavingsServiceFacade

use of org.mifos.application.servicefacade.SavingsServiceFacade in project head by mifos.

the class CreateSavingsAccountControllerTest method setUp.

@Before
public void setUp() {
    controller = new CreateSavingsAccountController();
    QuestionnaireServiceFacade questionnaireServiceFacade = mock(QuestionnaireServiceFacade.class);
    controller.setQuestionnaireServiceFacade(questionnaireServiceFacade);
    savingsServiceFacade = mock(SavingsServiceFacade.class);
    controller.setSavingsServiceFacade(savingsServiceFacade);
    formBean = mock(CreateSavingsAccountFormBean.class);
    offering = new PrdOfferingDto((short) 1, "Offering 1", "10001");
    offerings = new ArrayList<PrdOfferingDto>(1);
    offerings.add(offering);
    customer = new CustomerDto();
    customer.setCustomerId(1);
    when(formBean.getCustomer()).thenReturn(customer);
}
Also used : CustomerDto(org.mifos.dto.domain.CustomerDto) SavingsServiceFacade(org.mifos.application.servicefacade.SavingsServiceFacade) PrdOfferingDto(org.mifos.dto.domain.PrdOfferingDto) QuestionnaireServiceFacade(org.mifos.platform.questionnaire.service.QuestionnaireServiceFacade) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 SavingsServiceFacade (org.mifos.application.servicefacade.SavingsServiceFacade)1 CustomerDto (org.mifos.dto.domain.CustomerDto)1 PrdOfferingDto (org.mifos.dto.domain.PrdOfferingDto)1 QuestionnaireServiceFacade (org.mifos.platform.questionnaire.service.QuestionnaireServiceFacade)1