Class TockJUnit4Rule

  • All Implemented Interfaces:

    
    public class TockJUnit4Rule<T extends TestContext>
    
                        

    A JUnit4 Rule to initialize the context for each call.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final T getTestContext()
      final BotDefinition getBotDefinition()
      final TestLifecycle<T> getLifecycle()
      final BotBusMock startNewBusMock(StoryDefinition story, ConnectorType connectorType, Locale locale, PlayerId userId) Provides a mock initialized with the specified StoryDefinition and starts the story.
      final BotBusMock newBusMock(StoryDefinition story, ConnectorType connectorType, Locale locale, PlayerId userId) Provides a mock initialized with the specified StoryDefinition.
      final BotBusMockContext newBusMockContext(StoryDefinition story, ConnectorType connectorType, Locale locale, PlayerId userId) Provides a mock context initialized with the specified StoryDefinition.
      final BotBusMock startBusMock() Provides a mock context initialized with the current testContext and runs the bus.
      final BotBusMock busMock() Provides a mock context initialized with the current testContext.
      <Error class: unknown class> ,.)>apply(<Error class: unknown class> base, <Error class: unknown class> description)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TockJUnit4Rule

        TockJUnit4Rule(BotDefinition botDefinition, TestLifecycle<T> lifecycle)