Package org.jbpm.test.tools
Class IterableListenerAssert
- java.lang.Object
-
- org.jbpm.test.tools.IterableListenerAssert
-
public class IterableListenerAssert extends Object
Group of asserts to be used together with IterableProcessEventListener. It helps track the path of the process.
-
-
Constructor Summary
Constructors Constructor Description IterableListenerAssert()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
assertChangedMultipleInstancesVariable(IterableProcessEventListener it, String name, Object oldValue, Object newValue)
Asserts that the variable was changed within multipleInstances subprocess.static void
assertChangedVariable(IterableProcessEventListener it, String name, Object oldValue, Object newValue)
Asserts that the variable was changedstatic void
assertLeft(IterableProcessEventListener it, String nodeName)
Asserts that the node with the given name was leftstatic void
assertMultipleVariablesChanged(IterableProcessEventListener it, String... variables)
When multiple variables are initialized order might be different on different JVMs.static void
assertNextNode(IterableProcessEventListener it, String nodeName)
Asserts that the node with the given name was triggered and left with no action in betweenstatic void
assertProcessCompleted(IterableProcessEventListener it, String processId)
Asserts that the process was completedstatic void
assertProcessStarted(IterableProcessEventListener it, String processId)
Asserts that the process was startedstatic void
assertTriggered(IterableProcessEventListener it, String nodeName)
Asserts that the node with the given name was triggered
-
-
-
Method Detail
-
assertNextNode
public static void assertNextNode(IterableProcessEventListener it, String nodeName)
Asserts that the node with the given name was triggered and left with no action in between- Parameters:
it
- listener that listened to the processnodeName
- name of the node that is expected to pass
-
assertProcessStarted
public static void assertProcessStarted(IterableProcessEventListener it, String processId)
Asserts that the process was started- Parameters:
it
- listener that listened to the processprocessId
- id of the process
-
assertProcessCompleted
public static void assertProcessCompleted(IterableProcessEventListener it, String processId)
Asserts that the process was completed- Parameters:
it
- listener that listened to the processprocessId
- id of the process
-
assertTriggered
public static void assertTriggered(IterableProcessEventListener it, String nodeName)
Asserts that the node with the given name was triggered- Parameters:
it
- listener that listened to the processnodeName
- name of the node that is expected to be triggered
-
assertLeft
public static void assertLeft(IterableProcessEventListener it, String nodeName)
Asserts that the node with the given name was left- Parameters:
it
- listener that listened to the processnodeName
- name of the node that is expected to be left
-
assertChangedVariable
public static void assertChangedVariable(IterableProcessEventListener it, String name, Object oldValue, Object newValue)
Asserts that the variable was changed- Parameters:
it
- listener that listened to the processname
- name of the variableoldValue
- expected old value or nullnewValue
- expected new value or null
-
assertChangedMultipleInstancesVariable
public static void assertChangedMultipleInstancesVariable(IterableProcessEventListener it, String name, Object oldValue, Object newValue)
Asserts that the variable was changed within multipleInstances subprocess. Variable has prefix identifying this MI subprocess.- Parameters:
it
- listener that listened to the processname
- name of the variableoldValue
- expected old value or nullnewValue
- expected new value or null
-
assertMultipleVariablesChanged
public static void assertMultipleVariablesChanged(IterableProcessEventListener it, String... variables)
When multiple variables are initialized order might be different on different JVMs.- Parameters:
it
- listener that listened to the processvariables
- names of changed variables
-
-