public final class ExtensionUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.junit.jupiter.api.extension.ExtensionContext.Store |
getStore(org.junit.jupiter.api.extension.ExtensionContext extensionContext,
Class clazz)
Creates a
ExtensionContext.Store for a given extensionContext. |
public static org.junit.jupiter.api.extension.ExtensionContext.Store getStore(org.junit.jupiter.api.extension.ExtensionContext extensionContext,
Class clazz)
ExtensionContext.Store for a given extensionContext. A ExtensionContext.Store is bound to an ExtensionContext so different test invocations
do not share the same store. For example a test invocation on ClassA.testMethodA will
have a different ExtensionContext.Store instance to that associated with a test
invocation on ClassA.testMethodB or test invocation on ClassC.testMethodC.extensionContext - the context in which the current test or container is being
executedExtensionContext.Store for the given extensionContextCopyright © 2022. All rights reserved.