Browse Source
Commitpull/28834/headd1b65f6d3e
introduced a regression regarding the handling of missing dependencies for optional (typically default) TestExecutionListeners. Prior tod1b65f6d3e
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
1 changed files with 4 additions and 1 deletions
Loading…
Reference in new issue