Hi Steven,
I don't know much about Spring unfortunately.
My understanding is that:
- a SpringJUnit4ClassRunner creates a TestContextManager
- that manager injects objects with the prepareInstance method
What you can try is to:
- add an initial step to prepare the specification:
override def map(fs: =>Fragments) = step(prepareInstance(this)) ^
fs
But I don't really know how this can really work.
One other option is to go on working with your usual JUnit test cases
but import the JUnit specs2 expectations:
http://etorreborre.github.com/specs2/api/index.html#org.specs2.matcher.JUnitMustExpectations
I'd be happy if someone really Spring could have a look at that!
Eric.