A few ideas:
- provide a base class with a property of type `ApplicationContext` that gets injected by Spring
- require the user to declare a property of type `ApplicationContext` that gets injected by Spring
- use a Spring TestExecutionListener
Maybe the Spring extension could also provide a way for other extensions to grab the application context directly. I'm not sure if subclassing the SpringExtension is a solution, because the original extension would likely get triggered anyway, which could pose problems.
Cheers,
Peter
> --
> You received this message because you are subscribed to the Google Groups "Spock Framework - User" group.
> To post to this group, send email to
spockfr...@googlegroups.com.
> To unsubscribe from this group, send email to
spockframewor...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/spockframework?hl=en.
>