Validate that private
JUnit Jupiter lifecycle methods are not annotated with @Autowired
#32627
Labels
Milestone
Overview
In #25966, we introduced support to validate that JUnit Jupiter test methods and lifecycle methods are not annotated with
@Autowired
, and we explicitly filtered outprivate
methods since JUnit Jupiter has always claimed thatprivate
test and lifecycle methods are not supported.However, by accident,
private
lifecycle methods are actually supported even if discouraged.In light of that, we should update our validation check to include
private
methods as well.Related Issues
The text was updated successfully, but these errors were encountered: