Package org.strecks.form.controller

Examples of org.strecks.form.controller.DelegatingForm


    ActionForward actionForward = new ActionForward();

    NavigableFormSubmitBean actionBean = createStrictMock(NavigableFormSubmitBean.class);
    ActionMapping mapping = createStrictMock(ActionMapping.class);
    DelegatingForm form = createStrictMock(DelegatingForm.class);
    HttpServletRequest request = createStrictMock(HttpServletRequest.class);

    expect(request.getAttribute(Globals.CANCEL_KEY)).andReturn(Boolean.TRUE);
    actionBean.cancel();
    expect(actionBean.getSuccessResult()).andReturn("cancel");
View Full Code Here


  @Test
  public void testBeanWithNoConverter()
  {
    BeanWithNoConverter form = new BeanWithNoConverter();
    DelegatingForm delegatingForm = FormTestUtils.getDelegatingForm(form);
    form.setDateField("duff value");

    try
    {
      delegatingForm.validate(null, null);
      Assert.fail();
    }
    catch (ApplicationConfigurationException e)
    {
      Assert.assertEquals(e.getMessage(),
View Full Code Here

  @BeforeMethod
  public void beforeTest()
  {

    form = new ProjectForm();
    DelegatingForm delegator = FormTestUtils.getDelegatingForm(form);

    validationInfo = delegator.getValidationInfo();
    strategy = new DefaultValidationStrategy();

    convertedValues = new HashMap<String, Object>();
   
  }
View Full Code Here

  {
    if (form instanceof AnnotatedForm)
    {
      //FIXME add check to determine whether validation should be deferred
     
      DelegatingForm delegatingForm = new DelegatingForm(form);
      return delegatingForm;
    }
    return form;
  }
View Full Code Here

TOP

Related Classes of org.strecks.form.controller.DelegatingForm

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.