Hi Sebastian, thanks for the example!

I can see what you're trying to acheive but in this particular case I don't think it's relevant. The main goal of having a TestContext is to avoid mutable global state, which can be altered externally and therefore is not guaranteed to be how you left it at any given time. Your example still relies on a global mutable variable, albiet instantiated by a DI framework.

The idea here is that each step should only ever see the state of the world when the previous step has finished - with no possibility of anything else ever affecting it.

Good luck with your prototype! Thanks.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to