コード例 #1
0
 @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();
 }
コード例 #2
0
 @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));
 }