-
Type: Improvement
-
Status: Done
-
Priority: Medium
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 1.19.0
-
Component/s: appng-testsupport
-
Labels:None
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();