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);
}
Aggregations