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

WizardCommandController does not execute all steps when execute is called directly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.19.2.Final
    • Fix Version/s: 2.20.0.Final
    • Component/s: UI - API
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            gastaldi George Gastaldi
            Reporter:
            gastaldi George Gastaldi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: