Spring Web Flow
  1. Spring Web Flow
  2. SWF-1079

Testing subflows - Review/improve how subflows are configured for tests

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Trivial Trivial
    • Resolution: Unresolved
    • Affects Version/s: 2.0.6
    • Fix Version/s: None
    • Labels:
      None

      Description

      Consider the testing scenario where there is a flow A that calls a subflow B, and subflow A begins with various states that are NOT view-states. The current documentation doesn't provide a clear example on how to test a flow like this.

      Highlight in the webflow testing documentation that configureFlowBuilderContext of AbstractXmlFlowExecutionTests needs to be overridden and builderContext.registerSubflow(createMyMockSubflowB()); needs to be called.

      It would also be good to see documentation on how to wire up a real subflow B (as opposed to a mock subflow B).

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Keith Donald
            Reporter:
            Greg Matthews
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development