Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure CompileWithTargetClassAccessExtension only uses Jupiter TestEn…
…gine Commit 9dd7f54 (which has now been reverted) addressed the issue of having the TestNG TestEngine for the JUnit Platform on the test runtime classpath by allowing `org.testng` types to pass through to the original ClassLoader; however, that fix merely obfuscated the underlying issue. The underlying issue is that the CompileWithTargetClassAccessExtension is only applicable to JUnit Jupiter tests and therefore should launch the JUnit Platform with only the JUnit Jupiter TestEngine active. This commit addresses this issue by applying an EngineFilter to include only the "junit-jupiter" test engine. Closes gh-28900
- Loading branch information