parent
4a23d9234c
commit
d9bf3e54f7
|
|
@ -119,16 +119,14 @@ class CompileWithTargetClassAccessExtension implements InvocationInterceptor {
|
||||||
testClass.getClassLoader());
|
testClass.getClassLoader());
|
||||||
Thread.currentThread().setContextClassLoader(forkedClassPathClassLoader);
|
Thread.currentThread().setContextClassLoader(forkedClassPathClassLoader);
|
||||||
try {
|
try {
|
||||||
runTest(forkedClassPathClassLoader, testClass, testMethod);
|
runTest(testClass, testMethod);
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
Thread.currentThread().setContextClassLoader(originalClassLoader);
|
Thread.currentThread().setContextClassLoader(originalClassLoader);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void runTest(ClassLoader classLoader, Class<?> testClass, Method testMethod)
|
private void runTest(Class<?> testClass, Method testMethod) throws Throwable {
|
||||||
throws Throwable {
|
|
||||||
|
|
||||||
LauncherDiscoveryRequest request = LauncherDiscoveryRequestBuilder.request()
|
LauncherDiscoveryRequest request = LauncherDiscoveryRequestBuilder.request()
|
||||||
.selectors(selectMethod(getFullyQualifiedMethodName(testClass, testMethod)))
|
.selectors(selectMethod(getFullyQualifiedMethodName(testClass, testMethod)))
|
||||||
.filters(includeEngines("junit-jupiter"))
|
.filters(includeEngines("junit-jupiter"))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue