Class VariableContextFake
- java.lang.Object
-
- org.camunda.bpm.extension.mockito.typedvalues.VariableContextFake
-
- All Implemented Interfaces:
java.util.function.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, java.util.function.Supplier<org.camunda.bpm.engine.variable.VariableMap>
Implementation ofVariableContextthat internally uses aVariableMapto keep key/value pairs.Use
add(String, TypedValue)for fluent building.
-
-
Constructor Summary
Constructors Constructor Description VariableContextFake()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VariableContextFakeadd(String key, org.camunda.bpm.engine.variable.value.TypedValue value)booleancontainsVariable(String key)org.camunda.bpm.engine.variable.VariableMapget()Set<String>keySet()org.camunda.bpm.engine.variable.value.TypedValueresolve(String key)
-
-
-
Method Detail
-
resolve
public org.camunda.bpm.engine.variable.value.TypedValue resolve(String key)
- Specified by:
resolvein interfaceorg.camunda.bpm.engine.variable.context.VariableContext
-
containsVariable
public boolean containsVariable(String key)
- Specified by:
containsVariablein interfaceorg.camunda.bpm.engine.variable.context.VariableContext
-
keySet
public Set<String> keySet()
- Specified by:
keySetin interfaceorg.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:
getin interfacejava.util.function.Supplier<org.camunda.bpm.engine.variable.VariableMap>
-
-