akka

testkit

package testkit

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. testkit
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
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 JavaTestKit 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 TestKitBase

    Test kit for testing actors.

  21. trait TestKitBase extends AnyRef

    Implementation trait behind the akka.testkit.TestKit class: you may use this if inheriting from a concrete class is not possible.

  22. class TestKitSettings extends Extension

  23. class TestLatch extends Awaitable[Unit]

  24. class TestProbe extends TestKit

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

  25. 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

  2. object EventFilter

    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 ExtractRoute

    This object can be used to extract the Route out of a RoutedActorRef.

  4. object TestActor

  5. object TestActorRef extends Serializable

  6. object TestBarrier

    A cyclic barrier wrapper for use in testing.

  7. object TestEvent

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

  8. object TestFSMRef extends Serializable

  9. object TestKit

  10. object TestKitExtension extends ExtensionId[TestKitSettings]

  11. object TestLatch

    A count down latch wrapper for use in testing.

  12. object TestProbe

  13. implicit def duration2TestDuration(duration: FiniteDuration): 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 scala.concurrent.duration._ import akka.testkit._ 10.milliseconds.dilated

    Corresponding Java API is available in TestKit.dilated

  14. def filterEvents[T](eventFilters: EventFilter*)(block: ⇒ T)(implicit system: ActorSystem): T

  15. def filterEvents[T](eventFilters: Iterable[EventFilter])(block: ⇒ T)(implicit system: ActorSystem): T

  16. def filterException[T <: Throwable](block: ⇒ Unit)(implicit system: ActorSystem, t: ClassTag[T]): Unit

Inherited from AnyRef

Inherited from Any

Ungrouped