Package org.imixs.workflow.engine
Class WorkflowContextMock
java.lang.Object
org.imixs.workflow.engine.WorkflowContextMock
- All Implemented Interfaces:
org.imixs.workflow.WorkflowContext
The MockWorkflowContext is a mock for a Workflow Environment used for junit
tests.
It encapsulates the initialization of a ModelManager and a WorkflowKernel.
A junit test can access the WorkflowKernel.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.imixs.workflow.ModelManagerjakarta.ejb.SessionContext
-
Constructor Details
-
WorkflowContextMock
public WorkflowContextMock()Constructor creates a Mock Environment- Throws:
org.imixs.workflow.exceptions.PluginException
-
-
Method Details
-
getModelManager
public org.imixs.workflow.ModelManager getModelManager()- Specified by:
getModelManagerin interfaceorg.imixs.workflow.WorkflowContext
-
getSessionContext
public jakarta.ejb.SessionContext getSessionContext()- Specified by:
getSessionContextin interfaceorg.imixs.workflow.WorkflowContext
-