Uploaded image for project: 'Hippo Repository'
  1. Hippo Repository
  2. REPO-1830

Make using another scxml definition testable

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.1.0
    • Labels:
      None
    • Similar issues:
    • Processed by team:
      Turing
    • Sprint:
      Turing Sprint 165, Turing Sprint 166, Turing Sprint 167

      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

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

              Dates

              • Created:
                Updated:
                Resolved: