When I run Junit4 tests, I use an annotation @RunWith(SpringJUnit4ClassRunner.class)that allows me to embed Spring Beans in my test class.
I would like to use the JMock 2 framework (which I have no real experience), but for the examples I see, the following is required @RunWith(JMock.class).
So my question is: can I use JMock and Spring along with my JUnit4 tests, and if so, how? For example, is there a Spring test runner that also supports JMock?
Thanks,
Richard
source
share