public abstract class InternalFlowableExtension extends Object implements org.junit.jupiter.api.extension.AfterEachCallback, org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.AfterAllCallback, org.junit.jupiter.api.extension.ParameterResolver
Deployment
TestInstance.Lifecycle.
ProcessEngine, services, ProcessEngineConfiguration and the id of the deployment done via
Deployment into test methods and lifecycle methods within tests.
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ANNOTATION_DEPLOYMENT_ID_KEY |
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
InternalFlowableExtension() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterAll(org.junit.jupiter.api.extension.ExtensionContext context) |
void |
afterEach(org.junit.jupiter.api.extension.ExtensionContext context) |
protected void |
assertAndEnsureCleanDb(ProcessEngine processEngine,
org.junit.jupiter.api.extension.ExtensionContext context,
EnsureCleanDb ensureCleanDb)
Each test is assumed to clean up all DB content it entered.
|
void |
beforeEach(org.junit.jupiter.api.extension.ExtensionContext context) |
protected void |
cleanTestAndAssertAndEnsureCleanDb(org.junit.jupiter.api.extension.ExtensionContext context,
ProcessEngine processEngine) |
protected void |
doFinally(org.junit.jupiter.api.extension.ExtensionContext context,
org.junit.jupiter.api.TestInstance.Lifecycle lifecycleForClean) |
protected abstract ProcessEngine |
getProcessEngine(org.junit.jupiter.api.extension.ExtensionContext context) |
protected abstract org.junit.jupiter.api.extension.ExtensionContext.Store |
getStore(org.junit.jupiter.api.extension.ExtensionContext context) |
protected void |
removeDeployments(RepositoryService repositoryService) |
Object |
resolveParameter(org.junit.jupiter.api.extension.ParameterContext parameterContext,
org.junit.jupiter.api.extension.ExtensionContext context) |
boolean |
supportsParameter(org.junit.jupiter.api.extension.ParameterContext parameterContext,
org.junit.jupiter.api.extension.ExtensionContext context) |
protected static final String ANNOTATION_DEPLOYMENT_ID_KEY
protected final org.slf4j.Logger logger
public void beforeEach(org.junit.jupiter.api.extension.ExtensionContext context)
beforeEach in interface org.junit.jupiter.api.extension.BeforeEachCallbackpublic void afterEach(org.junit.jupiter.api.extension.ExtensionContext context)
throws Exception
afterEach in interface org.junit.jupiter.api.extension.AfterEachCallbackExceptionpublic void afterAll(org.junit.jupiter.api.extension.ExtensionContext context)
throws Exception
afterAll in interface org.junit.jupiter.api.extension.AfterAllCallbackExceptionprotected void doFinally(org.junit.jupiter.api.extension.ExtensionContext context,
org.junit.jupiter.api.TestInstance.Lifecycle lifecycleForClean)
protected void cleanTestAndAssertAndEnsureCleanDb(org.junit.jupiter.api.extension.ExtensionContext context,
ProcessEngine processEngine)
protected void assertAndEnsureCleanDb(ProcessEngine processEngine, org.junit.jupiter.api.extension.ExtensionContext context, EnsureCleanDb ensureCleanDb)
protected void removeDeployments(RepositoryService repositoryService)
public boolean supportsParameter(org.junit.jupiter.api.extension.ParameterContext parameterContext,
org.junit.jupiter.api.extension.ExtensionContext context)
supportsParameter in interface org.junit.jupiter.api.extension.ParameterResolverpublic Object resolveParameter(org.junit.jupiter.api.extension.ParameterContext parameterContext, org.junit.jupiter.api.extension.ExtensionContext context)
resolveParameter in interface org.junit.jupiter.api.extension.ParameterResolverprotected abstract ProcessEngine getProcessEngine(org.junit.jupiter.api.extension.ExtensionContext context)
protected abstract org.junit.jupiter.api.extension.ExtensionContext.Store getStore(org.junit.jupiter.api.extension.ExtensionContext context)
Copyright © 2018 Flowable. All rights reserved.