Closed
Description
Juergen Hoeller opened SPR-13575 and commented
Work in Progress
The current work for supporting JUnit 5 in the Spring TestContext Framework can be seen in the spring-test-junit5 repository.
Feedback is Welcome
Developers are encouraged to try out the SpringExtension
and provide feedback!
Deliverables
- Introduce a
SpringExtension
to be configured via@ExtendWith(SpringExtension.class)
(analogous to@RunWith(SpringRunner.class)
for JUnit 4) - Implement
ParameterResolver
- Implement
BeforeAllCallback
- Implement
AfterAllCallback
- Implement
TestInstancePostProcessor
- Implement
BeforeEachCallback
- Implement
AfterEachCallback
- Implement
BeforeTestExecutionCallback
andAfterTestExecutionCallback
- Delete custom
MethodParameterFactory
- Migrate to
ExecutionContext.Store
- Depends on JUnit issue #347
- Depends on JUnit issue #349
- Provide the test exception to
TestContextManager.afterTestMethod()
- depends on JUnit issue #92, JUnit issue #357, JUnit issue #359
Reference URL: https://github.com/junit-team/junit5
Issue Links:
- Introduce before/after test execution callbacks in the TestContext framework [SPR-4365] #9043 Introduce before/after test execution callbacks in the TestContext framework ("depends on")
- Introduce support for creating a MethodParameter from a Java 8 Parameter [SPR-14055] #18627 Introduce support for creating a MethodParameter from a Java 8 Parameter ("depends on")
- Allow @Autowired to be declared on parameters [SPR-14057] #18629 Allow
@Autowired
to be declared on parameters ("depends on") - Migrate remaining JUnit 3 based tests to JUnit 4 [SPR-13514] #18091 Migrate remaining JUnit 3 based tests to JUnit 4
- Allow @Qualifier to be used in composed annotations with attribute overrides [SPR-14058] #18630 Allow
@Qualifier
to be used in composed annotations with attribute overrides - Introduce autowiring support for individual handler method parameters [SPR-14056] #18628 Introduce autowiring support for individual handler method parameters
- Upgrade to JUnit 5.0 M3 [SPR-14924] #19491 Upgrade to JUnit 5.0 M3
- Upgrade to JUnit 5.0 M4 [SPR-15361] #19924 Upgrade to JUnit 5.0 M4
Referenced from: commits ecbec54, 862fb2a, 9a9551b, 7e783dd, 873fc53
2 votes, 9 watchers