Skip to content

Provide @Rule alternative to SpringJUnit4ClassRunner [SPR-7731] #12387

Closed
@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

Labels

has: votes-jiraIssues migrated from JIRA with more than 10 votes at the time of importin: testIssues in the test moduletype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions