akka

testkit

package testkit

Visibility
  1. Public
  2. All

Type Members

  1. class CallingThreadDispatcher extends MessageDispatcher

    Dispatcher which runs invocations on the current thread only.

  2. class CallingThreadDispatcherConfigurator extends MessageDispatcherConfigurator

  3. class CallingThreadMailbox extends Mailbox with DefaultSystemMessageQueue

  4. case class CustomEventFilter(test: PartialFunction[LogEvent, Boolean], occurrences: Int) extends EventFilter with Product with Serializable

    Custom event filter when the others do not fit the bill.

  5. case class DebugFilter(source: Option[String], message: Either[String, Regex], complete: Boolean, occurrences: Int) extends EventFilter with Product with Serializable

    Filter which matches Debug events, if they satisfy the given criteria:

  6. trait DefaultTimeout extends AnyRef

  7. case class ErrorFilter(throwable: Class[_], source: Option[String], message: Either[String, Regex], complete: Boolean, occurrences: Int) extends EventFilter with Product with Serializable

    Filter which matches Error events, if they satisfy the given criteria:

  8. abstract class EventFilter extends AnyRef

    Facilities for selectively filtering out expected events from logging so that you can keep your test run’s console output clean and do not miss real error messages.

  9. trait ImplicitSender extends AnyRef

  10. case class InfoFilter(source: Option[String], message: Either[String, Regex], complete: Boolean, occurrences: Int) extends EventFilter with Product with Serializable

    Filter which matches Info events, if they satisfy the given criteria:

  11. class NestingQueue extends AnyRef

  12. class TestActor extends Actor

  13. class TestActorRef[T <: Actor] extends LocalActorRef

    This special ActorRef is exclusively for use during unit testing in a single-threaded environment.

  14. class TestBarrier extends AnyRef

  15. class TestBarrierTimeoutException extends RuntimeException

  16. class TestDuration extends AnyRef

    Wrapper for implicit conversion to add dilated function to Duration.

  17. sealed trait TestEvent extends AnyRef

    Implementation helpers of the EventFilter facilities: send Mute to the TestEventListener to install a filter, and UnMute to deinstall it.

  18. class TestEventListener extends DefaultLogger

    EventListener for running tests, which allows selectively filtering out expected messages.

  19. class TestFSMRef[S, D, T <: Actor] extends TestActorRef[Nothing]

    This is a specialised form of the TestActorRef with support for querying and setting the state of a FSM.

  20. class TestKit extends AnyRef

    Test kit for testing actors.

  21. class TestKitSettings extends Extension

  22. class TestLatch extends Awaitable[Unit]

  23. class TestProbe extends TestKit

    TestKit-based probe which allows sending, reception and reply.

  24. case class WarningFilter(source: Option[String], message: Either[String, Regex], complete: Boolean, occurrences: Int) extends EventFilter with Product with Serializable

    Filter which matches Warning events, if they satisfy the given criteria:

Value Members

  1. object CallingThreadDispatcher extends AnyRef

  2. object EventFilter extends AnyRef

    Facilities for selectively filtering out expected events from logging so that you can keep your test run’s console output clean and do not miss real error messages.

  3. object TestActor extends AnyRef

  4. object TestActorRef extends Serializable

  5. object TestBarrier extends AnyRef

    A cyclic barrier wrapper for use in testing.

  6. object TestEvent extends AnyRef

    Implementation helpers of the EventFilter facilities: send Mute to the TestEventFilter to install a filter, and UnMute to deinstall it.

  7. object TestFSMRef extends Serializable

  8. object TestKit extends AnyRef

  9. object TestKitExtension extends ExtensionId[TestKitSettings]

  10. object TestLatch extends AnyRef

    A count down latch wrapper for use in testing.

  11. object TestProbe extends AnyRef

  12. implicit def duration2TestDuration(duration: Duration): TestDuration

    Scala API.

    Scala API. Scale timeouts (durations) during tests with the configured 'akka.test.timefactor'. Implicit conversion to add dilated function to Duration. import akka.util.duration._ import akka.testkit._ 10.milliseconds.dilated

    Corresponding Java API is available in TestKit.dilated

    Definition Classes
    package
  13. def filterEvents[T](eventFilters: EventFilter*)(block: ⇒ T)(implicit system: ActorSystem): T

    Definition Classes
    package
  14. def filterEvents[T](eventFilters: Iterable[EventFilter])(block: ⇒ T)(implicit system: ActorSystem): T

    Definition Classes
    package
  15. def filterException[T <: Throwable](block: ⇒ Unit)(implicit system: ActorSystem, m: Manifest[T]): Unit

    Definition Classes
    package