Class IterableListenerAssert


  • public class IterableListenerAssert
    extends Object
    Group of asserts to be used together with IterableProcessEventListener. It helps track the path of the process.
    • Constructor Detail

      • IterableListenerAssert

        public IterableListenerAssert()
    • 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 process
        nodeName - 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 process
        processId - 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 process
        processId - 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 process
        nodeName - 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 process
        nodeName - 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 process
        name - name of the variable
        oldValue - expected old value or null
        newValue - 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 process
        name - name of the variable
        oldValue - expected old value or null
        newValue - 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 process
        variables - names of changed variables