@Test public void testCustomerSelected() { when(savingsServiceFacade.retreieveCustomerDetails(customer.getCustomerId())).thenReturn(customer); controller.customerSelected(customer.getCustomerId(), formBean); verify(formBean).setCustomer(customer); }
public void customerSelected(Integer customerId, CreateSavingsAccountFormBean formBean) { CustomerDto customer = savingsServiceFacade.retreieveCustomerDetails(customerId); formBean.setCustomer(customer); }
CreateSavingsAccountController { public void customerSelected(Integer customerId, CreateSavingsAccountFormBean formBean) { CustomerDto customer = savingsServiceFacade.retreieveCustomerDetails(customerId); formBean.setCustomer(customer); } }
CreateSavingsAccountController { public void customerSelected(Integer customerId, CreateSavingsAccountFormBean formBean) { CustomerDto customer = savingsServiceFacade.retreieveCustomerDetails(customerId); formBean.setCustomer(customer); } protected  CreateSavingsAccountController(); }
CreateSavingsAccountController { public void customerSelected(Integer customerId, CreateSavingsAccountFormBean formBean) { CustomerDto customer = savingsServiceFacade.retreieveCustomerDetails(customerId); formBean.setCustomer(customer); } protected  CreateSavingsAccountController(); SavingsAccountDetailDto createAccountInActiveState(
            CreateSavingsAccountFormBean formBean); SavingsAccountDetailDto createAccountInPartialApplicationState(
            CreateSavingsAccountFormBean formBean); SavingsAccountDetailDto createAccountInPendingApprovalState(
            CreateSavingsAccountFormBean formBean); void customerSelected(Integer customerId, CreateSavingsAccountFormBean formBean); void loadQuestionGroups(CreateSavingsAccountFormBean formBean); void loadProduct(Integer productId,
            CreateSavingsAccountFormBean formBean); void getProductOfferings(CreateSavingsAccountFormBean formBean); CustomerSearchResultsDto searchCustomers(
            CreateSavingsAccountFormBean formBean); }
CreateSavingsAccountController { public void customerSelected(Integer customerId, CreateSavingsAccountFormBean formBean) { CustomerDto customer = savingsServiceFacade.retreieveCustomerDetails(customerId); formBean.setCustomer(customer); } protected  CreateSavingsAccountController(); SavingsAccountDetailDto createAccountInActiveState(
            CreateSavingsAccountFormBean formBean); SavingsAccountDetailDto createAccountInPartialApplicationState(
            CreateSavingsAccountFormBean formBean); SavingsAccountDetailDto createAccountInPendingApprovalState(
            CreateSavingsAccountFormBean formBean); void customerSelected(Integer customerId, CreateSavingsAccountFormBean formBean); void loadQuestionGroups(CreateSavingsAccountFormBean formBean); void loadProduct(Integer productId,
            CreateSavingsAccountFormBean formBean); void getProductOfferings(CreateSavingsAccountFormBean formBean); CustomerSearchResultsDto searchCustomers(
            CreateSavingsAccountFormBean formBean);  }