Class WorkflowContextMock

java.lang.Object
org.imixs.workflow.engine.WorkflowContextMock
All Implemented Interfaces:
org.imixs.workflow.WorkflowContext

public class WorkflowContextMock extends Object implements 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 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:
      getModelManager in interface org.imixs.workflow.WorkflowContext
    • getSessionContext

      public jakarta.ejb.SessionContext getSessionContext()
      Specified by:
      getSessionContext in interface org.imixs.workflow.WorkflowContext