Package org.mifosplatform.integrationtests.common.loans

Examples of org.mifosplatform.integrationtests.common.loans.LoanRescheduleRequestTestBuilder


     * create new loan reschedule request
     **/
    private void createLoanRescheduleRequest() {
      System.out.println("---------------------------------CREATING LOAN RESCHEDULE REQUEST------------------------------------------");
     
      final String requestJSON = new LoanRescheduleRequestTestBuilder().build(this.loanId.toString());
     
      this.loanRescheduleRequestId = this.loanRescheduleRequestHelper.createLoanRescheduleRequest(requestJSON);
      this.loanRescheduleRequestHelper.verifyCreationOfLoanRescheduleRequest(this.loanRescheduleRequestId);
     
      System.out.println("Successfully created loan reschedule request (ID: " + this.loanRescheduleRequestId + ")");
View Full Code Here


    public void testRejectLoanRescheduleRequest() {
      this.createLoanRescheduleRequest();
     
      System.out.println("-----------------------------REJECTING LOAN RESCHEDULE REQUEST--------------------------");
     
      final String requestJSON = new LoanRescheduleRequestTestBuilder().getRejectLoanRescheduleRequestJSON();
      this.loanRescheduleRequestHelper.rejectLoanRescheduleRequest(this.loanRescheduleRequestId, requestJSON);
     
      final HashMap response = (HashMap) this.loanRescheduleRequestHelper.getLoanRescheduleRequest(loanRescheduleRequestId, "statusEnum");
      assertTrue((Boolean)response.get("rejected"));
     
View Full Code Here

    public void testApproveLoanRescheduleRequest() {
      this.createLoanRescheduleRequest();
     
      System.out.println("-----------------------------APPROVING LOAN RESCHEDULE REQUEST--------------------------");
     
      final String requestJSON = new LoanRescheduleRequestTestBuilder().getApproveLoanRescheduleRequestJSON();
      this.loanRescheduleRequestHelper.approveLoanRescheduleRequest(this.loanRescheduleRequestId, requestJSON);
     
      final HashMap response = (HashMap) this.loanRescheduleRequestHelper.getLoanRescheduleRequest(loanRescheduleRequestId, "statusEnum");
      assertTrue((Boolean)response.get("approved"));
     
View Full Code Here

TOP

Related Classes of org.mifosplatform.integrationtests.common.loans.LoanRescheduleRequestTestBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.