Search in sources :

Example 1 with UndoLoanDisbursalSearchPage

use of org.mifos.test.acceptance.framework.loan.UndoLoanDisbursalSearchPage in project head by mifos.

the class UndoLoanDisbursalTest method reverseGroupLoanWhenAccInDiffStatus.

/**
     * Verify whether the user can reverse a Group loan when the Account is in different status
     * Group loan.
     * http://mifosforge.jira.com/browse/MIFOSTEST-26
     *
     * @throws Exception
     */
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void reverseGroupLoanWhenAccInDiffStatus() throws Exception {
    String groupID = "0002-000000004";
    String groupLoanID = "000100000000042";
    String resultClickLink = "group1: ID 0002-000000004";
    GroupViewDetailsPage groupViewDetailsPage = (GroupViewDetailsPage) loanTestHelper.reverseLoanDisbursal(groupLoanID, groupID, true, resultClickLink);
    groupViewDetailsPage.verifyLoanDoesntExist("Acct #" + groupLoanID);
    String loanID = "000100000000011";
    UndoLoanDisbursalSearchPage undoSearchPage = new NavigationHelper(selenium).navigateToAdminPage().navigateToUndoLoanDisbursal();
    undoSearchPage.verifyLoanCantBeReversed(loanID);
}
Also used : UndoLoanDisbursalSearchPage(org.mifos.test.acceptance.framework.loan.UndoLoanDisbursalSearchPage) NavigationHelper(org.mifos.test.acceptance.framework.testhelpers.NavigationHelper) GroupViewDetailsPage(org.mifos.test.acceptance.framework.group.GroupViewDetailsPage)

Aggregations

GroupViewDetailsPage (org.mifos.test.acceptance.framework.group.GroupViewDetailsPage)1 UndoLoanDisbursalSearchPage (org.mifos.test.acceptance.framework.loan.UndoLoanDisbursalSearchPage)1 NavigationHelper (org.mifos.test.acceptance.framework.testhelpers.NavigationHelper)1