When I run my Junit4 tests now I use the @RunWith(SpringJUnit4ClassRunner.class)
annotation which allows me to inject Spring Beans into my test class.
I would like to use the JMock 2 framework (which I have no real experience of) but examples I see require the following @RunWith(JMock.class)
.
So my question is can I use JMock and Spring together with my JUnit4 tests and if so how? For instance is there a Spring test runner that also supports JMock?
Thanks,
Richard