Trait

io.funcqrs.test

InMemoryTestSupport

Related Doc: package test

Permalink

trait InMemoryTestSupport extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. InMemoryTestSupport
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def configure(backend: InMemoryBackend): Unit

    Permalink

    Implement this method to configure the passed InMemoryBackend for your tests

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. lazy val backend: InMemoryBackend

    Permalink
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def dropAllEvents(): Unit

    Permalink

    Drop all Events.

    Drop all Events. This method is useful to make sure there are no unconsumed event in the queue before starting a new test

    Useful when reusing the same test support on multiple test

  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def events: List[Any]

    Permalink
  11. def expectEvent[E](implicit arg0: ClassTag[E]): E

    Permalink

    Check only the type of the head of the test event buffer

    Check only the type of the head of the test event buffer

    E

    - the event type

    returns

    E if head of event buffer is E

    Exceptions thrown

    AssertionError in Event Buffer head doesn't match passed Event

  12. def expectEventPF[T](pf: PartialFunction[Any, T]): T

    Permalink

    Check if the next event in buffer matches the passed PartialFunction.

    Check if the next event in buffer matches the passed PartialFunction.

    Useful to verify the content of the event pattern matching.

    pf

    - a PartialFunction from Any to T

  13. def expectNoEvent(): Unit

    Permalink

    Check that the internal event buffer is empty meaning that there is no new events to be processed.

    Check that the internal event buffer is empty meaning that there is no new events to be processed.

    Works exactly the same as expectNoMoreEvents.

    This method is generally used to verify that a command didn't emit any event.

  14. def expectNoMoreEvents(): Unit

    Permalink

    Check that the internal event buffer is empty meaning that there is no new events to be processed.

    Check that the internal event buffer is empty meaning that there is no new events to be processed.

    Works exactly the same as expectNoMoreEvents.

    This method is generally used at the end of a test case to verity that all events emitted during the test were effectively consumed and that no unexpected event were emitted.

  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. def lastReceivedEvent[E](implicit arg0: ClassTag[E]): E

    Permalink
  20. def lastReceivedEventPF[T](pf: PartialFunction[Any, T]): T

    Permalink
  21. def lookupExpectedEvent[E](implicit arg0: ClassTag[E]): E

    Permalink

    Search event buffer for E consuming all previous Events.

    Search event buffer for E consuming all previous Events.

    E

    - the event type

    returns

    E if event buffer contains an Event of type E

    Exceptions thrown

    AssertionError in case there is no matching Event on the buffer

  22. def lookupExpectedEventPF[T](pf: PartialFunction[Any, T]): T

    Permalink

    Search event buffer for an Event matching the passed PartialFunction consuming all previous Events.

    Search event buffer for an Event matching the passed PartialFunction consuming all previous Events.

    Useful to verify the content of the event pattern matching.

    pf

    - a PartialFunction from Any to T

    returns

    E if event buffer contains an Event of type E

    Exceptions thrown

    AssertionError in case there is no matching Event on the buffer

  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped