Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-7731

Provide @Rule alternative to SpringJUnit4ClassRunner

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 4.2 RC1
    • Component/s: Test
    • Last commented by a User:
      false

      Description

      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

            Activity

              People

              • Assignee:
                sbrannen Sam Brannen
                Reporter:
                david_syer Dave Syer
                Last updater:
                Sam Brannen
              • Votes:
                25 Vote for this issue
                Watchers:
                30 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 43 weeks ago