Package io.agroal.test
Class IsolatingClassloaderLauncherInterceptor
java.lang.Object
io.agroal.test.IsolatingClassloaderLauncherInterceptor
- All Implemented Interfaces:
org.junit.platform.launcher.LauncherInterceptor
public class IsolatingClassloaderLauncherInterceptor
extends Object
implements org.junit.platform.launcher.LauncherInterceptor
LauncherInterceptor that loads test classes, and classes the test relies on from designated packages, in new ClassLoader.- Author:
- Luis Barreiro
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.junit.platform.launcher.LauncherInterceptor
org.junit.platform.launcher.LauncherInterceptor.Invocation<T extends Object> -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
IsolatingClassloaderLauncherInterceptor
public IsolatingClassloaderLauncherInterceptor()
-
-
Method Details
-
intercept
public <T> T intercept(org.junit.platform.launcher.LauncherInterceptor.Invocation<T> invocation) - Specified by:
interceptin interfaceorg.junit.platform.launcher.LauncherInterceptor
-
close
public void close()- Specified by:
closein interfaceorg.junit.platform.launcher.LauncherInterceptor
-