Testing Spring devices using Scala Specs

We have a large infrastructure that is highly dependent on the Spring Framework. I recently started writing code in Scala and tested it with Specs. It's great, but at some point I need to use Spring-dependent functions (such as DAO HibernateDaoSupport).

Has anyone been able to use the SpringJUnit4ClassRunner class to run Specs tests? Does anyone have a different direction regarding how to achieve this goal?

thanks

+6
spring scala junit specs
source share
1 answer

I fought the runner class in such an awkward scenario once, and then created a MethodRule implementation called TemporarySpringContext , which could also solve your problem I think.

+2
source share

All Articles