[forge-issues] [JBoss JIRA] (FORGE-2495) WizardCommandController does not execute all steps when execute is called directly

George Gastaldi (JIRA) issues at jboss.org
Thu Oct 1 14:30:00 EDT 2015


George Gastaldi created FORGE-2495:
--------------------------------------

             Summary: 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. 



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the forge-issues mailing list