You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have now integrated the code from my personal spring-test-junit5 repository into master in GitHub commit 873fc53:
Introduce support for JUnit 5 in the TestContext framework
This commit introduces initial support for JUnit Jupiter (i.e., the new
programming and extension models in JUnit 5) in the Spring TestContext
Framework.
Specifically, this commit introduces the following.
SpringExtension: an implementation of multiple extension APIs from JUnit Jupiter that provides full support for the existing feature set of the Spring TestContext Framework. This support is enabled via @ExtendWith(SpringExtension.class).
@SpringJUnitConfig: a composed annotation that combines @ExtendWith(SpringExtension.class) from JUnit Jupiter with @ContextConfiguration from the Spring TestContext Framework.
@SpringJUnitWebConfig: a composed annotation that combines @ExtendWith(SpringExtension.class) from JUnit Jupiter with @ContextConfiguration and @WebAppConfiguration from the Spring TestContext Framework.
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
SpringExtension
to be configured via@ExtendWith(SpringExtension.class)
(analogous to@RunWith(SpringRunner.class)
for JUnit 4)ParameterResolver
BeforeAllCallback
AfterAllCallback
TestInstancePostProcessor
BeforeEachCallback
AfterEachCallback
BeforeTestExecutionCallback
andAfterTestExecutionCallback
MethodParameterFactory
ExecutionContext.Store
TestContextManager.afterTestMethod()
Reference URL: https://github.com/junit-team/junit5
Issue Links:
@Autowired
to be declared on parameters ("depends on")@Qualifier
to be used in composed annotations with attribute overridesReferenced from: commits ecbec54, 862fb2a, 9a9551b, 7e783dd, 873fc53
2 votes, 9 watchers
The text was updated successfully, but these errors were encountered: