public class IterableListenerAssert extends Object
Constructor and Description |
---|
IterableListenerAssert() |
Modifier and Type | Method and 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 changed
|
static void |
assertLeft(IterableProcessEventListener it,
String nodeName)
Asserts that the node with the given name was left
|
static 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 between
|
static void |
assertProcessCompleted(IterableProcessEventListener it,
String processId)
Asserts that the process was completed
|
static void |
assertProcessStarted(IterableProcessEventListener it,
String processId)
Asserts that the process was started
|
static void |
assertTriggered(IterableProcessEventListener it,
String nodeName)
Asserts that the node with the given name was triggered
|
public static void assertNextNode(IterableProcessEventListener it, String nodeName)
it
- listener that listened to the processnodeName
- name of the node that is expected to passpublic static void assertProcessStarted(IterableProcessEventListener it, String processId)
it
- listener that listened to the processprocessId
- id of the processpublic static void assertProcessCompleted(IterableProcessEventListener it, String processId)
it
- listener that listened to the processprocessId
- id of the processpublic static void assertTriggered(IterableProcessEventListener it, String nodeName)
it
- listener that listened to the processnodeName
- name of the node that is expected to be triggeredpublic static void assertLeft(IterableProcessEventListener it, String nodeName)
it
- listener that listened to the processnodeName
- name of the node that is expected to be leftpublic static void assertChangedVariable(IterableProcessEventListener it, String name, Object oldValue, Object newValue)
it
- listener that listened to the processname
- name of the variableoldValue
- expected old value or nullnewValue
- expected new value or nullpublic static void assertChangedMultipleInstancesVariable(IterableProcessEventListener it, String name, Object oldValue, Object newValue)
it
- listener that listened to the processname
- name of the variableoldValue
- expected old value or nullnewValue
- expected new value or nullpublic static void assertMultipleVariablesChanged(IterableProcessEventListener it, String... variables)
it
- listener that listened to the processvariables
- names of changed variablesCopyright © 2001–2019 JBoss by Red Hat. All rights reserved.