Class ContextClassLoaderExtension
- java.lang.Object
-
- org.apache.flink.testutils.junit.extensions.ContextClassLoaderExtension
-
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback
,org.junit.jupiter.api.extension.BeforeAllCallback
,org.junit.jupiter.api.extension.Extension
public class ContextClassLoaderExtension extends Object implements org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.AfterAllCallback
JUnit extension to customize the classloader that a test is run with.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ContextClassLoaderExtension.ContextClassLoaderExtensionBuilder
Builder forContextClassLoaderExtension
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterAll(org.junit.jupiter.api.extension.ExtensionContext context)
void
beforeAll(org.junit.jupiter.api.extension.ExtensionContext context)
static ContextClassLoaderExtension.ContextClassLoaderExtensionBuilder
builder()
-
-
-
Method Detail
-
beforeAll
public void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
- Specified by:
beforeAll
in interfaceorg.junit.jupiter.api.extension.BeforeAllCallback
- Throws:
Exception
-
afterAll
public void afterAll(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
- Specified by:
afterAll
in interfaceorg.junit.jupiter.api.extension.AfterAllCallback
- Throws:
Exception
-
builder
public static ContextClassLoaderExtension.ContextClassLoaderExtensionBuilder builder()
-
-