[SPR-5963] Upgraded to JUnit 4.7

This commit is contained in:
Sam Brannen
2009-08-11 10:12:20 +00:00
parent 5d17515dc5
commit 42638585b5
10 changed files with 30 additions and 25 deletions

View File

@@ -32,7 +32,7 @@ import org.springframework.test.context.support.DirtiesContextTestExecutionListe
* <p>
* Abstract base test class which integrates the <em>Spring TestContext
* Framework</em> with explicit {@link ApplicationContext} testing support in a
* <strong>JUnit 4.6</strong> environment.
* <strong>JUnit 4.7</strong> environment.
* </p>
* <p>
* Concrete subclasses should typically declare a class-level

View File

@@ -50,7 +50,7 @@ import org.springframework.test.context.junit4.statements.SpringRepeat;
* <p>
* <code>SpringJUnit4ClassRunner</code> is a custom extension of
* {@link BlockJUnit4ClassRunner} which provides functionality of the
* <em>Spring TestContext Framework</em> to standard JUnit 4.6+ tests by means
* <em>Spring TestContext Framework</em> to standard JUnit 4.7+ tests by means
* of the {@link TestContextManager} and associated support classes and
* annotations.
* </p>
@@ -76,7 +76,7 @@ import org.springframework.test.context.junit4.statements.SpringRepeat;
* </ul>
* <p>
* <b>NOTE:</b> As of Spring 3.0, <code>SpringJUnit4ClassRunner</code> requires
* JUnit 4.6.
* JUnit 4.7.
* </p>
*
* @author Sam Brannen
@@ -249,6 +249,11 @@ public class SpringJUnit4ClassRunner extends BlockJUnit4ClassRunner {
}
}
private EachTestNotifier makeNotifier(FrameworkMethod method, RunNotifier notifier) {
Description description = describeChild(method);
return new EachTestNotifier(notifier, description);
}
/**
* Augments the default JUnit behavior
* {@link #withPotentialRepeat(FrameworkMethod, Object, Statement) with

View File

@@ -1,6 +1,6 @@
/**
* <p>Support classes for ApplicationContext-based and transactional
* tests run with JUnit 4.6 and the <em>Spring TestContext Framework</em>.</p>
* tests run with JUnit 4.7 and the <em>Spring TestContext Framework</em>.</p>
*/
package org.springframework.test.context.junit4;

View File

@@ -4,7 +4,7 @@
* that is agnostic of the actual testing framework in use. The same
* techniques and annotation-based configuration used in, for example, a
* JUnit 3.8 environment can also be applied to tests written with JUnit
* 4.6, TestNG, etc.</p>
* 4.7, TestNG, etc.</p>
*
* <p>In addition to providing generic and extensible testing
* infrastructure, the Spring TestContext Framework provides out-of-the-box