Class VariableContextFake

java.lang.Object
org.camunda.community.mockito.typedvalues.VariableContextFake
All Implemented Interfaces:
Supplier<org.camunda.bpm.engine.variable.VariableMap>, org.camunda.bpm.engine.variable.context.VariableContext

public class VariableContextFake extends Object implements org.camunda.bpm.engine.variable.context.VariableContext, Supplier<org.camunda.bpm.engine.variable.VariableMap>
Implementation of VariableContext that internally uses a VariableMap to keep key/value pairs.

Use add(String, TypedValue) for fluent building.

  • Constructor Details

    • VariableContextFake

      public VariableContextFake()
  • Method Details

    • resolve

      public org.camunda.bpm.engine.variable.value.TypedValue resolve(String key)
      Specified by:
      resolve in interface org.camunda.bpm.engine.variable.context.VariableContext
    • containsVariable

      public boolean containsVariable(String key)
      Specified by:
      containsVariable in interface org.camunda.bpm.engine.variable.context.VariableContext
    • keySet

      public Set<String> keySet()
      Specified by:
      keySet in interface org.camunda.bpm.engine.variable.context.VariableContext
    • add

      public VariableContextFake add(String key, org.camunda.bpm.engine.variable.value.TypedValue value)
    • get

      public org.camunda.bpm.engine.variable.VariableMap get()
      Specified by:
      get in interface Supplier<org.camunda.bpm.engine.variable.VariableMap>