Package org.strecks.form.handler

Examples of org.strecks.form.handler.FormValidationHandler


   */
  @Test
  public void testPreValidate() throws Exception
  {

    FormValidationHandler delegate = new FormValidationHandlerImpl();
    ActionForm actionForm = new SimpleStrutsForm();
    DelegatingForm delegator = new DelegatingForm(actionForm);

    ControllerRequestProcessor processor = new ControllerRequestProcessor();
    processor.setFormValidationHandler(delegate);
View Full Code Here


{
  @Test
  public void testPopulateActionForm() throws Exception
  {
    ServletActionContext sac = getActionContext();
    FormValidationHandler formValidationHandler = newMock(FormValidationHandler.class);
    ValidateActionForm validateActionForm = getValidateActionForm(formValidationHandler);

    ActionMapping actionConfig = newMock(ActionMapping.class);
    HttpServletRequest request = newMock(HttpServletRequest.class);
   
    expect(sac.getRequest()).andReturn(request);
    expect(sac.getActionConfig()).andReturn(actionConfig);
    expect(sac.getFormValid()).andReturn(true);
   
    formValidationHandler.postValidate(request, actionConfig, true);

    replayMocks();
    validateActionForm.postExecute(sac);
    verifyMocks();
 
View Full Code Here

TOP

Related Classes of org.strecks.form.handler.FormValidationHandler

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.