public abstract class ExternalResource<A extends Annotation,R extends ExternalResource.Holder> extends Object implements org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.BeforeEachCallback
| Modifier and Type | Class and Description |
|---|---|
static class |
ExternalResource.Holder |
| Modifier | Constructor and Description |
|---|---|
protected |
ExternalResource(Class<A> annotationClass,
String key,
org.junit.jupiter.api.extension.ExtensionContext.Namespace namespace) |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeAll(org.junit.jupiter.api.extension.ExtensionContext context) |
void |
beforeEach(org.junit.jupiter.api.extension.ExtensionContext context) |
protected Optional<R> |
getResource(org.junit.jupiter.api.extension.ExtensionContext context) |
protected abstract boolean |
isShared(A annotation) |
protected abstract Optional<R> |
processResource(R existingResource,
A annotation,
org.junit.jupiter.api.extension.ExtensionContext context) |
protected abstract boolean isShared(A annotation)
protected abstract Optional<R> processResource(R existingResource, A annotation, org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
Exceptionprotected Optional<R> getResource(org.junit.jupiter.api.extension.ExtensionContext context)
public void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context)
throws Exception
beforeAll in interface org.junit.jupiter.api.extension.BeforeAllCallbackExceptionCopyright © 2021. All rights reserved.