Class BatchExtension
java.lang.Object
org.operaton.bpm.engine.test.junit5.batch.BatchExtension
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterTestExecutionCallback,org.junit.jupiter.api.extension.BeforeTestExecutionCallback,org.junit.jupiter.api.extension.Extension,org.junit.jupiter.api.extension.TestWatcher
public class BatchExtension
extends Object
implements org.junit.jupiter.api.extension.TestWatcher, org.junit.jupiter.api.extension.BeforeTestExecutionCallback, org.junit.jupiter.api.extension.AfterTestExecutionCallback
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ProcessEngineExtensionprotected ProcessEngineTestExtensionstatic final Stringstatic final Stringstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionBatchExtension(ProcessEngineExtension engineRule, ProcessEngineTestExtension engineTestRule) -
Method Summary
Modifier and TypeMethodDescriptionvoidafterTestExecution(org.junit.jupiter.api.extension.ExtensionContext context) voidbeforeTestExecution(org.junit.jupiter.api.extension.ExtensionContext context) voidexecuteSeedJobs(Batch batch) executeSeedJobs(Batch batch, boolean cleanUp) getExecutionJobs(Batch batch) protected JobgetJobForDefinition(String definitionId) getSeedJob(Batch batch) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.junit.jupiter.api.extension.TestWatcher
testAborted, testDisabled, testFailed, testSuccessful
-
Field Details
-
SEED_JOB
- See Also:
-
MONITOR_JOB
- See Also:
-
EXECUTION_JOBS
- See Also:
-
engineRule
-
engineTestRule
-
batchIds
-
-
Constructor Details
-
BatchExtension
-
-
Method Details
-
beforeTestExecution
public void beforeTestExecution(org.junit.jupiter.api.extension.ExtensionContext context) - Specified by:
beforeTestExecutionin interfaceorg.junit.jupiter.api.extension.BeforeTestExecutionCallback
-
afterTestExecution
public void afterTestExecution(org.junit.jupiter.api.extension.ExtensionContext context) - Specified by:
afterTestExecutionin interfaceorg.junit.jupiter.api.extension.AfterTestExecutionCallback
-
clearDatabase
public void clearDatabase() -
syncExec
-
syncExec
-
executeSeedJobs
-
executeSeedJobs
-
getSeedJob
-
getJobForDefinition
-
getExecutionJobs
-