Ejemplo n.º 1
0
  public void testProcessValidators() throws Exception {

    result = false;
    ajaxForm.setSubmitted(true);
    child.setSubmittedValue(new String("test0"));
    ajaxForm.processValidators(facesContext);
    assertTrue(result);
  }
Ejemplo n.º 2
0
  // TODO processUpdates test
  public void testProcessUpdates() throws Exception {

    facesContext.getExternalContext().getRequestParameterMap().put("form", "form");
    child.setSubmittedValue(new String("test1"));
    ajaxForm.processDecodes(facesContext);
    ajaxForm.processValidators(facesContext);
    ajaxForm.processUpdates(facesContext);
  }