Class MockFlowBuilder


  • public final class MockFlowBuilder
    extends Object
    A builder for generating simple mock flows. Mostly used to generate stub subflows when testing a flow.
    • Constructor Detail

      • MockFlowBuilder

        private MockFlowBuilder()
        Constructor.
    • Method Detail

      • MockNoOpFlow

        public static Flow MockNoOpFlow​(@Nonnull @NotEmpty
                                        String flowId)
        Create a simple flow with one start-state which transitions to an end-state that ends the flow. The flow does nothing.
        Parameters:
        flowId - the flow identifier.
        Returns:
        the constructed mock flow.