Uploaded image for project: '[Read Only] - Hippo Repository'
  1. [Read Only] - Hippo Repository
  2. REPO-1830

Make using another scxml definition testable

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 5.1.0
    • None
    • None

    Description

      Current situation

      Based on the property scxml-definition another scxml definition is loaded. It's extremely hard to test a workflow that makes use of an alternative definition.

      /hippo:configuration/hippo:workflows/[documentworkflowtype]/handle/hipposys:config/scxml-definition
      

      Desired situation

      It should be possible without using any mocking framework to test a workflow based on an alternative scxml definition.

      Solution

      In a test it's now possible to provide an alternative scxml definition:

      DocumentWorkflowImpl wf =  new DocumentWorkflowImpl(){
                  @Override
                  protected String getScxmlId() {
                      return "alternativeWorkflowID";
                  }
              };
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            mrop Michiel Rop
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: