Package org.sete.vo.admin

Examples of org.sete.vo.admin.SearchSeteUserVo


                      HttpServletResponse response) throws Exception {

      doAuthorization(request, true);

      SeteUserService service = getService(SeteUserService.class);
      SearchSeteUserVo ssuvo = new SearchSeteUserVo();
      BeanUtils.copyProperties(ssuvo, form);
      List<SeteUserVo> seteUsers = service.querySeteUsers(ssuvo);
      request.setAttribute("seteUser", seteUsers);
      return mapping.findForward("view");
    }
View Full Code Here


                      HttpServletResponse response) throws Exception {

      doAuthorization(request, true);

      SeteUserService service = getService(SeteUserService.class);
      SearchSeteUserVo ssuvo = new SearchSeteUserVo();
      BeanUtils.copyProperties(ssuvo, form);
      List<SeteUserVo> seteUsers = service.querySeteUsers(ssuvo);
      request.setAttribute("seteUser", seteUsers);
      return mapping.findForward(WebConstants.FORWARD_VIEW);
    }
View Full Code Here

     *  WhiteBox Test for case where users matching the search criteria exist in the
     *  database
     */
    @Test
    public void testQuerySeteUser(){
      ssuvo = new SearchSeteUserVo();
      ssuvo.setSearchField("firstName");
      ssuvo.setSearchString("J");
      expect(userDao.findBySpecifiedField(ssuvo.getSearchString(), ssuvo.getSearchField())).andStubReturn(seteUsers);
      replay(userDao);
     
View Full Code Here

     *  WhiteBox Test for case where users matching the search criteria do not exist in the
     *  database
     */   
    @Test
    public void testQueryEmptySeteUser(){
      ssuvo = new SearchSeteUserVo();
      ssuvo.setSearchField("firstName");
      ssuvo.setSearchString("Z");
      List<SeteUser> emptyResult = new ArrayList<SeteUser>();
      expect(userDao.findBySpecifiedField(ssuvo.getSearchString(), ssuvo.getSearchField())).andStubReturn(emptyResult);
      replay(userDao);
View Full Code Here

TOP

Related Classes of org.sete.vo.admin.SearchSeteUserVo

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.