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 DeadLettersFilter(messageClass: Class[_])(occurrences: Int) extends EventFilter with Product with Serializable

    Filter which matches DeadLetter events, if the wrapped message conforms to the given type.

  6. 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:

  7. trait DefaultTimeout extends AnyRef

  8. 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:

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

  10. trait ImplicitSender extends AnyRef

  11. 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:

  12. class JavaTestKit extends AnyRef

  13. class TestActor extends Actor

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

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

  15. class TestBarrier extends AnyRef

  16. class TestBarrierTimeoutException extends RuntimeException

  17. class TestDuration extends AnyRef

    Wrapper for implicit conversion to add dilated function to Duration.

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

  19. class TestEventListener extends DefaultLogger

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

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

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

  21. class TestKit extends TestKitBase

    Test kit for testing actors.

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

  23. class TestKitSettings extends Extension

  24. class TestLatch extends Awaitable[Unit]

  25. class TestProbe extends TestKit

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

  26. 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 DeadLettersFilter extends Serializable

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

  4. object ExtractRoute

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

  5. object TestActor

  6. object TestActorRef extends Serializable

  7. object TestBarrier

    A cyclic barrier wrapper for use in testing.

  8. object TestEvent

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

  9. object TestFSMRef extends Serializable

  10. object TestKit

  11. object TestKitExtension extends ExtensionId[TestKitSettings]

  12. object TestLatch

    A count down latch wrapper for use in testing.

  13. object TestProbe

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped