]
George Gastaldi closed FORGE-2495.
----------------------------------
Resolution: Done
WizardCommandController does not execute all steps when execute is
called directly
----------------------------------------------------------------------------------
Key: FORGE-2495
URL:
https://issues.jboss.org/browse/FORGE-2495
Project: Forge
Issue Type: Bug
Components: UI - API
Affects Versions: 2.19.2.Final
Reporter: George Gastaldi
Assignee: George Gastaldi
Fix For: 2.20.0.Final
The following code does not execute all the steps:
{code}
try (WizardCommandController controller =
uiTestHarness.createWizardController(JPASetupWizard.class,
project.getRoot()))
{
controller.initialize();
controller.execute();
}
{code}
That is because {{canExecute()}} calls {{refreshFlow()}}. If canExecute is called before
execute, then it works. The solution is to call refreshFlow() in the execute() method.