Dave Syer opened SPR-7731 and commented
Overview
Sometimes (always?) it would be nice to have a @Rule implementation that did the job of the SpringJUnit4ClassRunner.
The main motivation for this is to be able to use other runners (e.g. @Parameterized, @Categories, Mockito, etc.).
There might even be a case for deprecating the runner in favor of a @Rule?
Further Resources
Attachments:
Issue Links:
25 votes, 30 watchers
Dave Syer opened SPR-7731 and commented
Overview
Sometimes (always?) it would be nice to have a
@Ruleimplementation that did the job of theSpringJUnit4ClassRunner.The main motivation for this is to be able to use other runners (e.g.
@Parameterized,@Categories, Mockito, etc.).There might even be a case for deprecating the runner in favor of a
@Rule?Further Resources
Attachments:
Issue Links:
@Ruleexecutes outside of transaction when using the TransactionalTestExecutionListener ("is depended on by")25 votes, 30 watchers