@ -92,27 +93,20 @@ public class SpringJUnit4ClassRunner extends BlockJUnit4ClassRunner {
@@ -92,27 +93,20 @@ public class SpringJUnit4ClassRunner extends BlockJUnit4ClassRunner {
privatestaticfinalMethodwithRulesMethod;
// Used by RunAfterTestClassCallbacks and RunAfterTestMethodCallbacks
"Failed to find withRules() method: SpringJUnit4ClassRunner requires JUnit 4.9 or higher.");
thrownewIllegalStateException("SpringJUnit4ClassRunner requires JUnit 4.12 or higher.");
}
ReflectionUtils.makeAccessible(withRulesMethod);
}
privatefinalTestContextManagertestContextManager;
@ -376,8 +370,7 @@ public class SpringJUnit4ClassRunner extends BlockJUnit4ClassRunner {
@@ -376,8 +370,7 @@ public class SpringJUnit4ClassRunner extends BlockJUnit4ClassRunner {
@ -80,13 +80,7 @@ public class RunAfterTestClassCallbacks extends Statement {
@@ -80,13 +80,7 @@ public class RunAfterTestClassCallbacks extends Statement {
@ -97,13 +97,7 @@ public class RunAfterTestMethodCallbacks extends Statement {
@@ -97,13 +97,7 @@ public class RunAfterTestMethodCallbacks extends Statement {
@ -3623,8 +3623,8 @@ be automatically rolled back by the `TransactionalTestExecutionListener` (see
@@ -3623,8 +3623,8 @@ be automatically rolled back by the `TransactionalTestExecutionListener` (see
[[testcontext-junit4-runner]]
===== Spring JUnit Runner
The __Spring TestContext Framework__ offers full integration with JUnit 4.9+ through a
custom runner (supported on JUnit 4.9 through 4.12). By annotating test classes with
The __Spring TestContext Framework__ offers full integration with JUnit 4 through a
custom runner (supported on JUnit 4.12 or higher). By annotating test classes with
`@RunWith(SpringJUnit4ClassRunner.class)`, developers can implement standard JUnit-based
unit and integration tests and simultaneously reap the benefits of the TestContext
framework such as support for loading application contexts, dependency injection of test
@ -3657,7 +3657,7 @@ public class SimpleTest {
@@ -3657,7 +3657,7 @@ public class SimpleTest {
===== Spring JUnit Rules
The `org.springframework.test.context.junit4.rules` package provides the following JUnit
rules.
4 rules (supported on JUnit 4.12 or higher).
* `SpringClassRule`
* `SpringMethodRule`
@ -3701,14 +3701,14 @@ public class IntegrationTest {
@@ -3701,14 +3701,14 @@ public class IntegrationTest {
===== JUnit support classes
The `org.springframework.test.context.junit4` package provides the following support
classes for JUnit-based test cases.
classes for JUnit-based test cases (supported on JUnit 4.12 or higher).
* `AbstractJUnit4SpringContextTests`
* `AbstractTransactionalJUnit4SpringContextTests`
`AbstractJUnit4SpringContextTests` is an abstract base test class that integrates the
__Spring TestContext Framework__ with explicit `ApplicationContext` testing support in
a JUnit 4.9+ environment. When you extend `AbstractJUnit4SpringContextTests`, you can
a JUnit 4 environment. When you extend `AbstractJUnit4SpringContextTests`, you can
access a `protected` `applicationContext` instance variable that can be used to perform
explicit bean lookups or to test the state of the context as a whole.