Package org.strecks.preprocess

Examples of org.strecks.preprocess.RequestPreprocessor


  @Test
  public void testProcessCachedMessages() throws ServletException, IOException
  {

    RequestPreprocessor handler = createMock(RequestPreprocessor.class);

    handler.preprocessRequest(null);

    replay(handler);

    ControllerRequestProcessor controllerRequestProcessor = new ControllerRequestProcessor();
    controllerRequestProcessor.setRequestPreprocessor(handler);
View Full Code Here


{
  @Test
  public void testPopulateActionForm() throws Exception
  {
    ServletActionContext sac = getActionContext();
    RequestPreprocessor requestPreprocessor = newMock(RequestPreprocessor.class);
    Preprocess preprocess = getPreprocess(requestPreprocessor);
    HttpServletRequest request = newMock(HttpServletRequest.class);

    expect(sac.getRequest()).andReturn(request);
    requestPreprocessor.preprocessRequest(request);

    replayMocks();
    preprocess.execute(sac);
    verifyMocks();
 
View Full Code Here

TOP

Related Classes of org.strecks.preprocess.RequestPreprocessor

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.