Unit testing nested subflows (subflows of subflows)
Posted
by snusmumrik
on Stack Overflow
See other posts from Stack Overflow
or by snusmumrik
Published on 2010-05-31T19:08:34Z
Indexed on
2010/05/31
19:13 UTC
Read the original article
Hit count: 168
I'm trying to write unit test for a flow, which has subflow, which, itself, has another subflow.
I register first flow using
FlowDefinitionResource getResource(FlowDefinitionResourceFactory resourceFactory)
.
Then I register subflow definitions during test execution in FlowDefinitionRegistry
before transitioning to them.
Transitioning to "first level" subflow goes ok. The result of transitioning to subflow of current subflow - NoSuchFlowDefinitionException
.
The problem is that subflow definitions are all seem attached to the primary flow of the test and subflow can't be found within another subflow.
Is there any way to attach subflow definition to another subflow in tests, which extend AbstractXmlFlowExecutionTests
?
© Stack Overflow or respective owner