Interface StrandExecutorTestSupport

    • Field Detail

      • TIMEOUT

        static final java.time.Duration TIMEOUT
    • Method Detail

      • waitUntilStrandStateIs

        default void waitUntilStrandStateIs​(StrandExecutor strandExecutor,
                                            io.molr.commons.domain.RunState state)
      • waitUntilStrandIsFinished

        default void waitUntilStrandIsFinished​(StrandExecutor strandExecutor)
      • waitUntilStrandBlockIs

        default void waitUntilStrandBlockIs​(StrandExecutor strandExecutor,
                                            io.molr.commons.domain.Block block)
      • waitUntilResultOfBlockIs

        default void waitUntilResultOfBlockIs​(TreeTracker<io.molr.commons.domain.Result> resultTracker,
                                              io.molr.commons.domain.Block block,
                                              io.molr.commons.domain.Result result)
      • waitForProcessedCommand

        default void waitForProcessedCommand​(StrandExecutor strandExecutor,
                                             io.molr.commons.domain.StrandCommand command)
      • waitForErrorOfType

        default void waitForErrorOfType​(StrandErrorsRecorder recorder,
                                        java.lang.Class<? extends java.lang.Exception> clazz)
      • assertThatResultOf

        default org.assertj.core.api.AbstractComparableAssert<?,​io.molr.commons.domain.Result> assertThatResultOf​(TreeTracker<io.molr.commons.domain.Result> resultTracker,
                                                                                                                        io.molr.commons.domain.Block block)
      • assertThatBlockOf

        default org.assertj.core.api.ObjectAssert<io.molr.commons.domain.Block> assertThatBlockOf​(StrandExecutor strandExecutor)
      • assertThatStateOf

        default org.assertj.core.api.AbstractComparableAssert<?,​io.molr.commons.domain.RunState> assertThatStateOf​(StrandExecutor executor)
      • assertThat

        default org.assertj.core.api.ListAssert<java.lang.Exception> assertThat​(StrandErrorsRecorder recorder)
      • assertThatAllowedCommandsOf

        default org.assertj.core.api.IterableAssert<io.molr.commons.domain.StrandCommand> assertThatAllowedCommandsOf​(StrandExecutor executor)
      • instructSync

        default void instructSync​(StrandExecutor executor,
                                  io.molr.commons.domain.StrandCommand command)
        Will instruct the specified command on the specified StrandExecutor and wait for it to be processed processing
      • instructAsync

        default void instructAsync​(StrandExecutor executor,
                                   io.molr.commons.domain.StrandCommand command)
        Will instruct the specified command on the specified StrandExecutor and return immediately
      • moveTo

        @Deprecated
        default void moveTo​(StrandExecutor executor,
                            io.molr.commons.domain.Block destination)
        Deprecated.