use of org.mifos.customers.util.helpers.CustomerSearchInputDto in project head by mifos.
the class ClientTransferAction method loadParents.
@TransactionDemarcate(joinToken = true)
public ActionForward loadParents(ActionMapping mapping, @SuppressWarnings("unused") ActionForm form, HttpServletRequest request, @SuppressWarnings("unused") HttpServletResponse response) throws Exception {
CustomerSearchInputDto clientSearchInput = new CustomerSearchInputDto();
clientSearchInput.setOfficeId(getUserContext(request).getBranchId());
clientSearchInput.setCustomerInputPage(ClientConstants.INPUT_GROUP_TRANSFER);
SessionUtils.setAttribute(CustomerConstants.CUSTOMER_SEARCH_INPUT, clientSearchInput, request.getSession());
return mapping.findForward(ActionForwards.loadParents_success.toString());
}
use of org.mifos.customers.util.helpers.CustomerSearchInputDto in project head by mifos.
the class ClientTransferActionStrutsTest method testLoad_updateParent.
@Test
public void testLoad_updateParent() throws Exception {
setRequestPathInfo("/clientTransferAction.do");
addRequestParameter("method", "loadParents");
addRequestParameter(Constants.CURRENTFLOWKEY, flowKey);
actionPerform();
verifyForward(ActionForwards.loadParents_success.toString());
verifyNoActionErrors();
verifyNoActionMessages();
CustomerSearchInputDto clientSearchInput = (CustomerSearchInputDto) SessionUtils.getAttribute(CustomerConstants.CUSTOMER_SEARCH_INPUT, request.getSession());
Assert.assertNotNull(clientSearchInput);
Assert.assertEquals(TestObjectFactory.HEAD_OFFICE, clientSearchInput.getOfficeId());
}
Aggregations