Details
-
Improvement
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
None
-
None
-
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"; } };