标签: mule munit
可以在flow-ref上使用间谍或verifyCallOf消息处理器吗?我们有如下流程:
<flow name="myMainFlow"> ........ ........ <flow-ref name="mySubFlow" /> </flow> <sub-flow> ... </sub-flow>
我无法在flow-ref调用上使用spy或verifyCallOf。但我能够在子流内的消息处理器上使用它们。有没有办法实现这个目标?
答案 0 :(得分:1)
您模拟FLOW或子流而不是flow-ref
https://github.com/mulesoft/munit/blob/munit-3.5.x/munit-integration-tests/src/test/munit/mp-mocking-test.xml#L321
https://github.com/mulesoft/munit/blob/munit-3.5.x/munit-integration-tests/src/test/munit/mp-mocking-test.xml#L338