Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-2495

WizardCommandController does not execute all steps when execute is called directly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.20.0.Final
    • 2.19.2.Final
    • UI - API
    • None

      The following code does not execute all the steps:

            try (WizardCommandController controller = uiTestHarness.createWizardController(JPASetupWizard.class,
                     project.getRoot()))
            {
               controller.initialize();
               controller.execute();
            }
      

      That is because controller.execute() does not call refreshFlow(). If controller.canExecute() is called before controller.execute(), then it works. The solution is to call refreshFlow() in the execute() method.

            rhn-support-ggastald George Gastaldi
            rhn-support-ggastald George Gastaldi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: