Suggestions regarding how to test flows ?

Tom Zeller tzeller at dragonacea.biz
Thu Jan 16 11:36:52 EST 2014


I guess my question is : do we want to test flows by (a) extending the
Spring test class according to the Web Flow docs or (b) executing
flows manually like we do in idp-attribute-cli ?

In the end, I do not think there is much difference, because we need
to create an application context and execute a flow outside of the
container.

I ask because the Spring test class extends JUnit, and, after a little
work yesterday I had some trouble with how it locates Resources. It
seems some of the parent-child and sub-flow wiring needs to be
reproduced in the test class itself, which seems somewhat undesirable,
hence my question.

I can spend time figuring out the Spring provided test classes, but
before I do, should I ?

A follow up question is : if anyone has experience writing unit or
integration tests for flows, let me know...

(So far the SAML1 flow is a stub, and before I add more actions I
would like to get the test harness built).

Thanks.


More information about the dev mailing list