Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle missing dependencies for optional TestExecutionListener again
Commit d1b65f6 introduced a regression regarding the handling of missing dependencies for optional (typically default) TestExecutionListeners. Prior to d1b65f6 a TestExecutionListener was instantiated using java.lang.Class.newInstance() which never throws an InvocationTargetException. With the switch to the new SpringFactoriesLoader APIs, a TestExecutionListener is now instantiated using java.lang.reflect.Constructor.newInstance(Object...) which can throw an InvocationTargetException. This commit addresses the regression by unwrapping the target exception in an InvocationTargetException. See gh-28666 Closes gh-28828
- Loading branch information