@Test public void shouldCreateLoanAssembledFromIndividualLoanRequest() { IndividualLoanRequest individualLoanRequest = new IndividualLoanRequestBuilder().build(); when(loanAssembler.assembleFrom(individualLoanRequest)).thenReturn(individualLoan); individualLoanServiceFacade.create(individualLoanRequest); }
@Override public void create(IndividualLoanRequest individualLoan) { IndividualLoan loan = loanAssembler.assembleFrom(individualLoan); }
IndividualLoanServiceFacadeWebTier implements IndividualLoanServiceFacade { @Override public void create(IndividualLoanRequest individualLoan) { IndividualLoan loan = loanAssembler.assembleFrom(individualLoan); } }
IndividualLoanServiceFacadeWebTier implements IndividualLoanServiceFacade { @Override public void create(IndividualLoanRequest individualLoan) { IndividualLoan loan = loanAssembler.assembleFrom(individualLoan); } IndividualLoanServiceFacadeWebTier(LoanService loanService, LoanAssembler loanAssembler); }
IndividualLoanServiceFacadeWebTier implements IndividualLoanServiceFacade { @Override public void create(IndividualLoanRequest individualLoan) { IndividualLoan loan = loanAssembler.assembleFrom(individualLoan); } IndividualLoanServiceFacadeWebTier(LoanService loanService, LoanAssembler loanAssembler); @Override void create(IndividualLoanRequest individualLoan); }
IndividualLoanServiceFacadeWebTier implements IndividualLoanServiceFacade { @Override public void create(IndividualLoanRequest individualLoan) { IndividualLoan loan = loanAssembler.assembleFrom(individualLoan); } IndividualLoanServiceFacadeWebTier(LoanService loanService, LoanAssembler loanAssembler); @Override void create(IndividualLoanRequest individualLoan);  }