6

We have a large infrastructure that's highly dependent on Spring Framework. Recently I began writing code in Scala and test it using Specs. This is all great but at some point I need to use Spring-dependent features (Such as a HibernateDaoSupport-based DAO).

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

Thanks

richj
  • 7,499
  • 3
  • 32
  • 50
Electric Monk
  • 2,192
  • 2
  • 23
  • 33

1 Answers1

2

I've struggled with the class runner in a similarly awkward scenario once and then I created a MethodRule implementation called TemporarySpringContext that could also solve your problem I think.

iwein
  • 25,788
  • 10
  • 70
  • 111