Package io.molr.mole.core.testing.strand
Interface SingleMissionStrandExecutorTestSupport
-
- All Superinterfaces:
StrandExecutorTestSupport
- All Known Implementing Classes:
AbstractSingleMissionStrandExecutorTest
public interface SingleMissionStrandExecutorTestSupport extends StrandExecutorTestSupport
Provides support methods for tests that act on one specificStrandExecutor
and mission. This condition makes it possible to reduce the overhead of parameters of theStrandExecutorTestSupport
.
-
-
Field Summary
-
Fields inherited from interface io.molr.mole.core.testing.strand.StrandExecutorTestSupport
TIMEOUT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default org.assertj.core.api.AbstractComparableAssert<?,Result>
assertThatResultOf(Block block)
default org.assertj.core.api.ObjectAssert<Block>
assertThatRootStrandBlock()
default org.assertj.core.api.AbstractComparableAssert<?,RunState>
assertThatRootStrandState()
default org.assertj.core.api.IterableAssert<StrandCommand>
assertThatStrandRootAllowedCommands()
default void
instructRootStrandAsync(StrandCommand command)
Will instruct the specified command on therootStrandExecutor()
and return immediatelydefault void
instructRootStrandSync(StrandCommand command)
Will instruct the specified command on therootStrandExecutor()
and wait for it to be processeddefault void
moveRootStrandTo(Block destination)
Deprecated.default void
moveRootStrandToBySkippingLeafsAndParallelNodes(Block destination, TreeStructure structure)
default StrandErrorsRecorder
recordRootStrandErrors()
default Set<StrandExecutor>
rootStrandChildren()
Deprecated.StrandExecutor
rootStrandExecutor()
TreeTracker<Result>
treeResultTracker()
default void
waitUntilResultOfBlockIs(Block block, Result result)
default void
waitUntilRootStrandBlockIs(Block block)
default void
waitUntilRootStrandIsFinished()
default void
waitUntilRootStrandStateIs(RunState state)
-
Methods inherited from interface io.molr.mole.core.testing.strand.StrandExecutorTestSupport
assertThat, assertThatAllowedCommandsOf, assertThatBlockOf, assertThatResultOf, assertThatStateOf, childrenStrandExecutorsOf, instructAsync, recordStrandErrors, waitForErrorOfType, waitUntilResultOfBlockIs, waitUntilStrandBlockIs, waitUntilStrandIsFinished, waitUntilStrandStateIs
-
-
-
-
Method Detail
-
rootStrandExecutor
StrandExecutor rootStrandExecutor()
-
treeResultTracker
TreeTracker<Result> treeResultTracker()
-
waitUntilRootStrandStateIs
default void waitUntilRootStrandStateIs(RunState state)
-
waitUntilRootStrandIsFinished
default void waitUntilRootStrandIsFinished()
-
waitUntilRootStrandBlockIs
default void waitUntilRootStrandBlockIs(Block block)
-
assertThatRootStrandBlock
default org.assertj.core.api.ObjectAssert<Block> assertThatRootStrandBlock()
-
assertThatRootStrandState
default org.assertj.core.api.AbstractComparableAssert<?,RunState> assertThatRootStrandState()
-
assertThatResultOf
default org.assertj.core.api.AbstractComparableAssert<?,Result> assertThatResultOf(Block block)
-
assertThatStrandRootAllowedCommands
default org.assertj.core.api.IterableAssert<StrandCommand> assertThatStrandRootAllowedCommands()
-
moveRootStrandTo
@Deprecated default void moveRootStrandTo(Block destination)
Deprecated.
-
moveRootStrandToBySkippingLeafsAndParallelNodes
default void moveRootStrandToBySkippingLeafsAndParallelNodes(Block destination, TreeStructure structure)
-
recordRootStrandErrors
default StrandErrorsRecorder recordRootStrandErrors()
-
rootStrandChildren
@Deprecated default Set<StrandExecutor> rootStrandChildren()
Deprecated.
-
instructRootStrandSync
default void instructRootStrandSync(StrandCommand command)
Will instruct the specified command on therootStrandExecutor()
and wait for it to be processed- Parameters:
command
- the command to execute on the root strand
-
instructRootStrandAsync
default void instructRootStrandAsync(StrandCommand command)
Will instruct the specified command on therootStrandExecutor()
and return immediately- Parameters:
command
- the command to execute on the root strand
-
-