Package hirondelle.fish.test.doubles

Examples of hirondelle.fish.test.doubles.FakeResponse


    testEditActionFails("Name=Carol&IsActive=true&Disposition=1", ADD); //duplicate name
  }
 
  public void testList() throws AppException {
    HttpServletRequest req = FakeRequest.forGET(LIST, NO_PARAMS);
    HttpServletResponse resp = new FakeResponse();
    MemberAction action = new MemberAction(new RequestParserImpl(req, resp));
   
    ResponsePage responsePage = action.execute();
    Object item = req.getAttribute(ITEMS_FOR_LISTING);
    assertTrue(item != null);
View Full Code Here


    //log(item);
  }
 
  public void testFetch() throws AppException {
    HttpServletRequest req = FakeRequest.forGET(FETCH, "Id=3");
    HttpServletResponse resp = new FakeResponse();
    MemberAction action = new MemberAction(new RequestParserImpl(req, resp));
   
    ResponsePage responsePage = action.execute();
    Object item = req.getAttribute(ITEM_FOR_EDIT);
    //log(item);
View Full Code Here

      req = FakeRequest.forGET(aServletPath, aQueryString);
    }
    HttpSession session = req.getSession(true); //links request to session
    assertTrue(session != null);
   
    HttpServletResponse resp = new FakeResponse();
    MemberAction action = new MemberAction(new RequestParserImpl(req, resp));
   
    if(aSucceeds) {
      assertActionSucceeds(req, action);
    }
View Full Code Here

TOP

Related Classes of hirondelle.fish.test.doubles.FakeResponse

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.