Class TrackingListenerAssert


  • public class TrackingListenerAssert
    extends Object
    Asserts usable to find out if/how many times were nodes in process visited. Works with TrackingProcessEventListener. If correct order of visited nodes is known use IterableListenerAssert.
    • Constructor Detail

      • TrackingListenerAssert

        public TrackingListenerAssert()
    • Method Detail

      • assertTriggered

        public static void assertTriggered​(TrackingProcessEventListener listener,
                                           String nodeName,
                                           int count)
        Asserts that the node with the given name was triggered count times
        Parameters:
        listener - process event listener
        nodeName - name of the node which is tested
        count - how many times is expected the node had been triggered
      • assertLeft

        public static void assertLeft​(TrackingProcessEventListener listener,
                                      String nodeName,
                                      int count)
        Asserts that the node with the given name was left count times
        Parameters:
        listener - process event listener
        nodeName - name of the node which is tested
        count - how many times is expected the node had been left