Document wrapping behavior of TestExecutionListener
callbacks
#34422
Labels
Milestone
TestExecutionListener
callbacks
#34422
Overview
The Javadoc for all "after" callback methods in
TestContextManager
(such as afterTestExecution()) states the following.However, most developers would not logically think to read the Javadoc for
TestContextManager
when trying to reason aboutTestExecutionListener
callbacks.Therefore, as mentioned by @nizametdinovcrx in #34225 (comment), we should officially document the "wrapping behavior" of
TestExecutionListener
callbacks, especially with regard to the fact that "after" callbacks are invoked in reverse registration order.Since I authored the documentation for JUnit Jupiter's Wrapping Behavior of Callbacks, I will likely borrow from that.
Related Issues
DirtiesContextTestExecutionListener
has unexpected execution order leading to errors #34225The text was updated successfully, but these errors were encountered: