Package io.molr.mole.core.testing.strand
Interface StrandExecutorTestSupport
-
- All Known Subinterfaces:
SingleMissionStrandExecutorTestSupport
- All Known Implementing Classes:
AbstractSingleMissionStrandExecutorTest
public interface StrandExecutorTestSupport
Provides support default methods for testing strand executor behaviour
-
-
Field Summary
Fields Modifier and Type Field Description static java.time.Duration
TIMEOUT
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default org.assertj.core.api.ListAssert<java.lang.Exception>
assertThat(StrandErrorsRecorder recorder)
default org.assertj.core.api.IterableAssert<io.molr.commons.domain.StrandCommand>
assertThatAllowedCommandsOf(StrandExecutor executor)
default org.assertj.core.api.ObjectAssert<io.molr.commons.domain.Block>
assertThatBlockOf(StrandExecutor strandExecutor)
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)
default org.assertj.core.api.AbstractComparableAssert<?,io.molr.commons.domain.RunState>
assertThatStateOf(StrandExecutor executor)
default java.util.Set<StrandExecutor>
childrenStrandExecutorsOf(StrandExecutor executor)
default void
instructAsync(StrandExecutor executor, io.molr.commons.domain.StrandCommand command)
Will instruct the specified command on the specifiedStrandExecutor
and return immediatelydefault void
instructSync(StrandExecutor executor, io.molr.commons.domain.StrandCommand command)
Will instruct the specified command on the specifiedStrandExecutor
and wait for it to be processed processingdefault void
moveTo(StrandExecutor executor, io.molr.commons.domain.Block destination)
Deprecated.default StrandErrorsRecorder
recordStrandErrors(StrandExecutor executor)
default void
waitForErrorOfType(StrandErrorsRecorder recorder, java.lang.Class<? extends java.lang.Exception> clazz)
default void
waitForProcessedCommand(StrandExecutor strandExecutor, io.molr.commons.domain.StrandCommand command)
default void
waitUntilResultOfBlockIs(TreeTracker<io.molr.commons.domain.Result> resultTracker, io.molr.commons.domain.Block block, io.molr.commons.domain.Result result)
default void
waitUntilStrandBlockIs(StrandExecutor strandExecutor, io.molr.commons.domain.Block block)
default void
waitUntilStrandIsFinished(StrandExecutor strandExecutor)
default void
waitUntilStrandStateIs(StrandExecutor strandExecutor, io.molr.commons.domain.RunState state)
-
-
-
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)
-
recordStrandErrors
default StrandErrorsRecorder recordStrandErrors(StrandExecutor executor)
-
childrenStrandExecutorsOf
default java.util.Set<StrandExecutor> childrenStrandExecutorsOf(StrandExecutor executor)
-
instructSync
default void instructSync(StrandExecutor executor, io.molr.commons.domain.StrandCommand command)
Will instruct the specified command on the specifiedStrandExecutor
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 specifiedStrandExecutor
and return immediately
-
moveTo
@Deprecated default void moveTo(StrandExecutor executor, io.molr.commons.domain.Block destination)
Deprecated.
-
-