So, finally I found time to answer your last post.
I've thought about what you wrote and I agree. Still I find the current situation pretty annoying since every change to the flow not only requires a change to the tests but also an updated copy of the flow without the <var> declarations.
I don't really have an understanding of the internals of Webflow but maybe something like a test switch parameter to the <var> tag could be a solution. E.g.:
Code:
<var name="myClass" class="com.package.MyClass" mock="true" />
I'm not only sugesting this because I find it annoying to have a modified copy of the flow for the test but also because I found this setup do be error-prone: if I modify the flow, run the test but forgot to replace the test copy of the flow I will maybe discover any errors made later, once I do replace the test copy. But tracking a bug down at this point will be much more difficult since I was probably expecting problems in completely different area.
Sorry for keeping you waiting so long.
Cheers.
-theseion