class SpringRunner : SpringJUnit4ClassRunner
SpringRunner is an alias for the SpringJUnit4ClassRunner.
To use this class, simply annotate a JUnit 4 based test class with @RunWith(SpringRunner.class).
If you would like to use the Spring TestContext Framework with a runner other than this one, use org.springframework.test.context.junit4.rules.SpringClassRule and org.springframework.test.context.junit4.rules.SpringMethodRule.
NOTE: This class requires JUnit 4.12 or higher.
Author
Sam Brannen
Since
4.3
See Also
SpringJUnit4ClassRunnerorg.springframework.test.context.junit4.rules.SpringClassRuleorg.springframework.test.context.junit4.rules.SpringMethodRule
SpringRunner(clazz: Class<*>)
Construct a new |