Browse Source
In the original implementation of MicrometerObservationRegistryTestExecutionListener I accidentally imported JUnit 5's org.junit.platform.launcher.TestExecutionListener instead Spring's org.springframework.test.context.TestExecutionListener. The code therefore attempts to use the ClassLoader for the JUnit Platform's TestExecutionListener which may fail to see the required types. In addition, if the JUnit Platform's TestExecutionListener is not on the classpath, the attempt to access its ClassLoader will fail. This commit addresses this by properly using the ClassLoader for Spring's TestExecutionListener to detect dependencies of the MicrometerObservationRegistryTestExecutionListener. Closes gh-30726pull/30724/head
Sam Brannen
1 year ago
1 changed files with 1 additions and 1 deletions
Loading…
Reference in new issue