public abstract class AbstractEsDataExtension
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected EsDataLoader |
loader |
protected static java.lang.String |
LOADER |
protected static java.lang.String |
TEST_INSTANCE |
| Constructor and Description |
|---|
AbstractEsDataExtension(EsDataLoader loader) |
| Modifier and Type | Method and Description |
|---|---|
protected static <A extends java.lang.annotation.Annotation> |
findMergedAnnotation(java.lang.reflect.AnnotatedElement element,
java.lang.Class<A> annotationType) |
protected org.springframework.context.ApplicationContext |
getApplicationContext(org.junit.jupiter.api.extension.ExtensionContext context)
Get the
ApplicationContext associated with the supplied
ExtensionContext. |
protected EsDataLoader |
getDataLoader(org.junit.jupiter.api.extension.ExtensionContext context)
Get the
EsDataLoader associated with the supplied ExtensionContext. |
protected abstract org.junit.jupiter.api.extension.ExtensionContext.Namespace |
getNamespace() |
protected org.junit.jupiter.api.extension.ExtensionContext.Store |
getStore(org.junit.jupiter.api.extension.ExtensionContext context) |
protected org.springframework.test.context.TestContextManager |
getTestContextManager(org.junit.jupiter.api.extension.ExtensionContext context)
Get the
TestContextManager associated with the supplied ExtensionContext. |
protected static final java.lang.String TEST_INSTANCE
protected static final java.lang.String LOADER
protected EsDataLoader loader
public AbstractEsDataExtension(EsDataLoader loader)
protected org.springframework.context.ApplicationContext getApplicationContext(org.junit.jupiter.api.extension.ExtensionContext context)
ApplicationContext associated with the supplied
ExtensionContext.context - the current ExtensionContext (never null)java.lang.IllegalStateException - if an error occurs while retrieving the application contextTestContext.getApplicationContext()protected org.springframework.test.context.TestContextManager getTestContextManager(org.junit.jupiter.api.extension.ExtensionContext context)
TestContextManager associated with the supplied ExtensionContext.context - the ExtensionContextTestContextManager (never null)protected EsDataLoader getDataLoader(org.junit.jupiter.api.extension.ExtensionContext context)
EsDataLoader associated with the supplied ExtensionContext.context - the ExtensionContextEsDataLoader (never null)protected org.junit.jupiter.api.extension.ExtensionContext.Store getStore(org.junit.jupiter.api.extension.ExtensionContext context)
protected static <A extends java.lang.annotation.Annotation> java.util.stream.Stream<A> findMergedAnnotation(java.lang.reflect.AnnotatedElement element,
java.lang.Class<A> annotationType)
protected abstract org.junit.jupiter.api.extension.ExtensionContext.Namespace getNamespace()