@Test public void testSearchResults_noresults_forvalidate() throws Exception { createCustomers(); account = getLoanAccount(group); setRequestPathInfo("/ChangeAccountStatus.do"); addRequestParameter("method", Methods.searchResults.toString()); addRequestParameter(Constants.CURRENTFLOWKEY, flowKey); addRequestParameter("personnelId", account.getPersonnel().getPersonnelId().toString()); addRequestParameter( "currentStatus", AccountState.LOAN_PARTIAL_APPLICATION.getValue().toString()); actionPerform(); verifyInputForward(); }
@Test public void testSearchResults_noresults() throws Exception { createCustomers(); account = getLoanAccount(group); setRequestPathInfo("/ChangeAccountStatus.do"); addRequestParameter("method", Methods.searchResults.toString()); addRequestParameter("officeId", account.getOffice().getOfficeId().toString()); addRequestParameter(Constants.CURRENTFLOWKEY, flowKey); addRequestParameter("personnelId", account.getPersonnel().getPersonnelId().toString()); addRequestParameter("type", "loan"); addRequestParameter( "currentStatus", AccountState.LOAN_PARTIAL_APPLICATION.getValue().toString()); actionPerform(); verifyForward(ActionForwards.noresultfound.toString()); Assert.assertNull(SessionUtils.getAttribute(LoanConstants.SEARCH_RESULTS, request)); }