<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">So how do you guys test your flows?</blockquote><div><br></div><div>I'm actively working on some custom post-authentication flows and the approach I've taken is to model after idp-conf. The AbstractFlowTest class allows you to do much of what the Spring-provided AbstractXmlFlowExecutionTests can do. The aspect I have found most helpful is that idp-conf supports loading resources from the classpath for testing and loading from the filesystem under %{idp.home} at runtime, so one layout works for both contexts.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> Do you<br>
have support classes to bootstrap a minimal SWF test context, assert<br>
states are reached, set starting state, trigger events, etc.?<br></blockquote><div><br></div><div>AbstractFlowTest can do everything above exception manually setting a starting state; for that you'll have to extend along the lines of the Spring-provided class. I did a little bit of that for my needs and it wasn't too difficult.</div><div><br></div><div>M</div><div><br></div></div></div>