Uploaded image for project: 'appNG'
  1. appNG
  2. APPNG-2225

It should be possible to retrieve an action's initial form for testing

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Done
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.19.0
    • Component/s: appng-testsupport
    • Labels:
      None

      Description

      Something like

      ActionCall editPerson = getAction("personEvent", "editPerson").withParam(FORM_ACTION, "editPerson").withParam("id", "3");
      Person form = editPerson.getForm();
      form.setFirstName("Luke");
      CallableAction callableAction = editPerson.getCallableAction(form);

      So the new Method to add is org.appng.testsupport.TestBase.ActionCall#getForm().
      There, DataProvider#getData can be called.

      Additionally, it should be possible to retrieve an action's initial state like this:

      ActionCall editPerson = getAction("personEvent", "editPerson").withParam(FORM_ACTION, "editPerson").withParam("id", "3");
      Action initialState = editPerson.initialize();
      

        Attachments

          Activity

            People

            • Assignee:
              mueller.matthias Matthias Müller
              Reporter:
              mueller.matthias Matthias Müller
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: