-
public final class MocksKt
-
-
Method Summary
Modifier and Type Method Description final ObjectcheckPreconditions(StoryDefinitionBase $self, BotBus bus)Runs StoryDefinitionBase.checkPreconditions. final StoryStep<?>,Object)>selectStepFromData(StoryDefinitionBase $self, <ERROR CLASS><out <ERROR CLASS>> def, Object data)Runs the select step from Bus phase. final <T extends Any> TmockConnector(T connector, BotBus bus, Function1<BotBus, Object> test)Provides a mock of ConnectorDef and run the test block. -
-
Method Detail
-
checkPreconditions
final Object checkPreconditions(StoryDefinitionBase $self, BotBus bus)
-
selectStepFromData
final StoryStep<?> ,Object)>selectStepFromData(StoryDefinitionBase $self, <ERROR CLASS><out <ERROR CLASS>> def, Object data)
Runs the select step from Bus phase.
-
mockConnector
final <T extends Any> T mockConnector(T connector, BotBus bus, Function1<BotBus, Object> test)
Provides a mock of ConnectorDef and run the test block.
-
-
-
-