2 Replies Latest reply on Jun 13, 2007 1:08 AM by dazhu tang

    Integration testing action events or value change events

    zzzz8 Newbie

      For an action, one can test it with the following:

      @Override
      protected void invokeApplication() {
       //call action methods here
       invokeMethod("#{NewForm.newForm}");
      }


      How does one do it for an action event or value change event? If I attempt to run something like:

      invokeMethod("#{NewForm.deleteRow}");


      where deleteRow is a method that is called for an action event (actionListener), then I get the regular javax.el.MethodNotFoundException... Obviously, I'm doing something wrong - I'm not approaching this correctly... How should one test action events or value change events?