abstract class ScalaTestWithClassicActorTestKit extends TestKit with TestSuite with BeforeAndAfterAll with ScalaFutures with Eventually with ImplicitSender with AkkaPatienceConfigurationSupport with AkkaSpanScaleFactorSupport
A class that provides integration of ScalaTest and classic Akka TestKit
Overview
This class is inspired by ScalaTestWithActorTestKit
- Alphabetic
- By Inheritance
- ScalaTestWithClassicActorTestKit
- AkkaSpanScaleFactorSupport
- AkkaPatienceConfigurationSupport
- ImplicitSender
- Eventually
- ScalaFutures
- Futures
- PatienceConfiguration
- AbstractPatienceConfiguration
- ScaledTimeSpans
- BeforeAndAfterAll
- SuiteMixin
- TestSuite
- Suite
- Serializable
- Serializable
- Assertions
- TripleEquals
- TripleEqualsSupport
- TestKit
- TestKitBase
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ScalaTestWithClassicActorTestKit(system: ActorSystem)
Type Members
-
class
AssertionsHelper extends AnyRef
- Definition Classes
- Assertions
-
class
CheckingEqualizer[L] extends AnyRef
- Definition Classes
- TripleEqualsSupport
-
class
Equalizer[L] extends AnyRef
- Definition Classes
- TripleEqualsSupport
-
trait
FutureConcept[T] extends AnyRef
- Definition Classes
- Futures
-
trait
NoArgTest extends () ⇒ Outcome with TestData
- Attributes
- protected
- Definition Classes
- TestSuite
-
final
case class
PatienceConfig extends Product with Serializable
- Definition Classes
- AbstractPatienceConfiguration
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
!==[T](right: Spread[T]): TripleEqualsInvocationOnSpread[T]
- Definition Classes
- TripleEqualsSupport
-
def
!==(right: Null): TripleEqualsInvocation[Null]
- Definition Classes
- TripleEqualsSupport
-
def
!==[T](right: T): TripleEqualsInvocation[T]
- Definition Classes
- TripleEqualsSupport
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
===[T](right: Spread[T]): TripleEqualsInvocationOnSpread[T]
- Definition Classes
- TripleEqualsSupport
-
def
===(right: Null): TripleEqualsInvocation[Null]
- Definition Classes
- TripleEqualsSupport
-
def
===[T](right: T): TripleEqualsInvocation[T]
- Definition Classes
- TripleEqualsSupport
-
def
afterAll(): Unit
- Definition Classes
- ScalaTestWithClassicActorTestKit → BeforeAndAfterAll
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
macro
def
assert(condition: Boolean, clue: Any)(implicit prettifier: Prettifier, pos: Position): Assertion
- Definition Classes
- Assertions
-
macro
def
assert(condition: Boolean)(implicit prettifier: Prettifier, pos: Position): Assertion
- Definition Classes
- Assertions
-
macro
def
assertCompiles(code: String)(implicit pos: Position): Assertion
- Definition Classes
- Assertions
-
macro
def
assertDoesNotCompile(code: String)(implicit pos: Position): Assertion
- Definition Classes
- Assertions
-
def
assertForDuration[A](a: ⇒ A, max: FiniteDuration, interval: Duration): A
- Definition Classes
- TestKitBase
-
def
assertResult(expected: Any)(actual: Any)(implicit prettifier: Prettifier, pos: Position): Assertion
- Definition Classes
- Assertions
-
def
assertResult(expected: Any, clue: Any)(actual: Any)(implicit prettifier: Prettifier, pos: Position): Assertion
- Definition Classes
- Assertions
-
def
assertThrows[T <: AnyRef](f: ⇒ Any)(implicit classTag: ClassTag[T], pos: Position): Assertion
- Definition Classes
- Assertions
-
macro
def
assertTypeError(code: String)(implicit pos: Position): Assertion
- Definition Classes
- Assertions
-
val
assertionsHelper: AssertionsHelper
- Definition Classes
- Assertions
-
macro
def
assume(condition: Boolean, clue: Any)(implicit prettifier: Prettifier, pos: Position): Assertion
- Definition Classes
- Assertions
-
macro
def
assume(condition: Boolean)(implicit prettifier: Prettifier, pos: Position): Assertion
- Definition Classes
- Assertions
-
def
awaitAssert[A](a: ⇒ A, max: Duration, interval: Duration): A
- Definition Classes
- TestKitBase
-
def
awaitCond(p: ⇒ Boolean, max: Duration, interval: Duration, message: String): Unit
- Definition Classes
- TestKitBase
-
def
beforeAll(): Unit
- Attributes
- protected
- Definition Classes
- BeforeAndAfterAll
-
def
cancel(cause: Throwable)(implicit pos: Position): Nothing
- Definition Classes
- Assertions
-
def
cancel(message: String, cause: Throwable)(implicit pos: Position): Nothing
- Definition Classes
- Assertions
-
def
cancel(message: String)(implicit pos: Position): Nothing
- Definition Classes
- Assertions
-
def
cancel()(implicit pos: Position): Nothing
- Definition Classes
- Assertions
-
def
childActorOf(props: Props): ActorRef
- Definition Classes
- TestKitBase
-
def
childActorOf(props: Props, name: String): ActorRef
- Definition Classes
- TestKitBase
-
def
childActorOf(props: Props, supervisorStrategy: SupervisorStrategy): ActorRef
- Definition Classes
- TestKitBase
-
def
childActorOf(props: Props, name: String, supervisorStrategy: SupervisorStrategy): ActorRef
- Definition Classes
- TestKitBase
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
conversionCheckedConstraint[A, B](implicit equivalenceOfA: Equivalence[A], cnv: (B) ⇒ A): CanEqual[A, B]
- Definition Classes
- TripleEquals → TripleEqualsSupport
-
def
convertEquivalenceToAToBConstraint[A, B](equivalenceOfB: Equivalence[B])(implicit ev: <:<[A, B]): CanEqual[A, B]
- Definition Classes
- TripleEquals → TripleEqualsSupport
-
def
convertEquivalenceToAToBConversionConstraint[A, B](equivalenceOfB: Equivalence[B])(implicit ev: (A) ⇒ B): CanEqual[A, B]
- Definition Classes
- TripleEquals → TripleEqualsSupport
-
def
convertEquivalenceToBToAConstraint[A, B](equivalenceOfA: Equivalence[A])(implicit ev: <:<[B, A]): CanEqual[A, B]
- Definition Classes
- TripleEquals → TripleEqualsSupport
-
def
convertEquivalenceToBToAConversionConstraint[A, B](equivalenceOfA: Equivalence[A])(implicit ev: (B) ⇒ A): CanEqual[A, B]
- Definition Classes
- TripleEquals → TripleEqualsSupport
-
implicit
def
convertScalaFuture[T](scalaFuture: Future[T]): FutureConcept[T]
- Definition Classes
- ScalaFutures
-
def
convertToCheckingEqualizer[T](left: T): CheckingEqualizer[T]
- Definition Classes
- TripleEquals → TripleEqualsSupport
-
implicit
def
convertToEqualizer[T](left: T): Equalizer[T]
- Definition Classes
- TripleEquals → TripleEqualsSupport
-
def
defaultEquality[A]: Equality[A]
- Definition Classes
- TripleEqualsSupport
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
eventually[T](fun: ⇒ T)(implicit config: PatienceConfig, pos: Position): T
- Definition Classes
- Eventually
-
def
eventually[T](interval: Interval)(fun: ⇒ T)(implicit config: PatienceConfig, pos: Position): T
- Definition Classes
- Eventually
-
def
eventually[T](timeout: Timeout)(fun: ⇒ T)(implicit config: PatienceConfig, pos: Position): T
- Definition Classes
- Eventually
-
def
eventually[T](timeout: Timeout, interval: Interval)(fun: ⇒ T)(implicit pos: Position): T
- Definition Classes
- Eventually
-
final
def
execute(testName: String, configMap: ConfigMap, color: Boolean, durations: Boolean, shortstacks: Boolean, fullstacks: Boolean, stats: Boolean): Unit
- Definition Classes
- Suite
-
def
expectMsg[T](max: FiniteDuration, hint: String, obj: T): T
- Definition Classes
- TestKitBase
-
def
expectMsg[T](max: FiniteDuration, obj: T): T
- Definition Classes
- TestKitBase
-
def
expectMsg[T](obj: T): T
- Definition Classes
- TestKitBase
-
def
expectMsgAllClassOf[T](max: FiniteDuration, obj: Class[_ <: T]*): Seq[T]
- Definition Classes
- TestKitBase
-
def
expectMsgAllClassOf[T](obj: Class[_ <: T]*): Seq[T]
- Definition Classes
- TestKitBase
-
def
expectMsgAllConformingOf[T](max: FiniteDuration, obj: Class[_ <: T]*): Seq[T]
- Definition Classes
- TestKitBase
-
def
expectMsgAllConformingOf[T](obj: Class[_ <: T]*): Seq[T]
- Definition Classes
- TestKitBase
-
def
expectMsgAllOf[T](max: FiniteDuration, obj: T*): Seq[T]
- Definition Classes
- TestKitBase
-
def
expectMsgAllOf[T](obj: T*): Seq[T]
- Definition Classes
- TestKitBase
-
def
expectMsgAnyClassOf[C](max: FiniteDuration, obj: Class[_ <: C]*): C
- Definition Classes
- TestKitBase
-
def
expectMsgAnyClassOf[C](obj: Class[_ <: C]*): C
- Definition Classes
- TestKitBase
-
def
expectMsgAnyOf[T](max: FiniteDuration, obj: T*): T
- Definition Classes
- TestKitBase
-
def
expectMsgAnyOf[T](obj: T*): T
- Definition Classes
- TestKitBase
-
def
expectMsgClass[C](max: FiniteDuration, c: Class[C]): C
- Definition Classes
- TestKitBase
-
def
expectMsgClass[C](c: Class[C]): C
- Definition Classes
- TestKitBase
-
def
expectMsgPF[T](max: Duration, hint: String)(f: PartialFunction[Any, T]): T
- Definition Classes
- TestKitBase
-
def
expectMsgType[T](max: FiniteDuration)(implicit t: ClassTag[T]): T
- Definition Classes
- TestKitBase
-
def
expectMsgType[T](implicit t: ClassTag[T]): T
- Definition Classes
- TestKitBase
-
def
expectNoMessage(): Unit
- Definition Classes
- TestKitBase
-
def
expectNoMessage(max: FiniteDuration): Unit
- Definition Classes
- TestKitBase
-
def
expectTerminated(target: ActorRef, max: Duration): Terminated
- Definition Classes
- TestKitBase
-
def
expectedTestCount(filter: Filter): Int
- Definition Classes
- Suite
-
def
fail(cause: Throwable)(implicit pos: Position): Nothing
- Definition Classes
- Assertions
-
def
fail(message: String, cause: Throwable)(implicit pos: Position): Nothing
- Definition Classes
- Assertions
-
def
fail(message: String)(implicit pos: Position): Nothing
- Definition Classes
- Assertions
-
def
fail()(implicit pos: Position): Nothing
- Definition Classes
- Assertions
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
fishForMessage(max: Duration, hint: String)(f: PartialFunction[Any, Boolean]): Any
- Definition Classes
- TestKitBase
-
def
fishForSpecificMessage[T](max: Duration, hint: String)(f: PartialFunction[Any, T]): T
- Definition Classes
- TestKitBase
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
ignoreMsg(f: PartialFunction[Any, Boolean]): Unit
- Definition Classes
- TestKitBase
-
def
ignoreNoMsg(): Unit
- Definition Classes
- TestKitBase
-
def
intercept[T <: AnyRef](f: ⇒ Any)(implicit classTag: ClassTag[T], pos: Position): T
- Definition Classes
- Assertions
-
def
interval(value: Span): Interval
- Definition Classes
- PatienceConfiguration
-
val
invokeBeforeAllAndAfterAllEvenIfNoTestsAreExpected: Boolean
- Definition Classes
- BeforeAndAfterAll
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
lastSender: ActorRef
- Definition Classes
- TestKitBase
-
def
lowPriorityConversionCheckedConstraint[A, B](implicit equivalenceOfB: Equivalence[B], cnv: (A) ⇒ B): CanEqual[A, B]
- Definition Classes
- TripleEquals → TripleEqualsSupport
-
def
lowPriorityTypeCheckedConstraint[A, B](implicit equivalenceOfB: Equivalence[B], ev: <:<[A, B]): CanEqual[A, B]
- Definition Classes
- TripleEquals → TripleEqualsSupport
-
def
msgAvailable: Boolean
- Definition Classes
- TestKitBase
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
nestedSuites: IndexedSeq[Suite]
- Definition Classes
- Suite
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
now: FiniteDuration
- Definition Classes
- TestKitBase
-
implicit
lazy val
patienceConfig: PatienceConfig
PatienceConfig
from akka.testkit.TestKitSettings.DefaultTimeoutPatienceConfig
from akka.testkit.TestKitSettings.DefaultTimeout- Definition Classes
- AkkaPatienceConfigurationSupport → PatienceConfiguration → AbstractPatienceConfiguration
-
def
pending: Assertion with PendingStatement
- Definition Classes
- Assertions
-
def
pendingUntilFixed(f: ⇒ Unit)(implicit pos: Position): Assertion with PendingStatement
- Definition Classes
- Assertions
-
def
receiveN(n: Int, max: FiniteDuration): Seq[AnyRef]
- Definition Classes
- TestKitBase
-
def
receiveN(n: Int): Seq[AnyRef]
- Definition Classes
- TestKitBase
-
def
receiveOne(max: Duration): AnyRef
- Definition Classes
- TestKitBase
-
def
receiveWhile[T](max: Duration, idle: Duration, messages: Int)(f: PartialFunction[AnyRef, T]): Seq[T]
- Definition Classes
- TestKitBase
-
def
remaining: FiniteDuration
- Definition Classes
- TestKitBase
-
def
remainingOr(duration: FiniteDuration): FiniteDuration
- Definition Classes
- TestKitBase
-
def
remainingOrDefault: FiniteDuration
- Definition Classes
- TestKitBase
-
def
rerunner: Option[String]
- Definition Classes
- Suite
-
def
run(testName: Option[String], args: Args): Status
- Definition Classes
- BeforeAndAfterAll → SuiteMixin
-
def
runNestedSuites(args: Args): Status
- Attributes
- protected
- Definition Classes
- Suite
-
def
runTest(testName: String, args: Args): Status
- Attributes
- protected
- Definition Classes
- TestSuite → Suite
-
def
runTests(testName: Option[String], args: Args): Status
- Attributes
- protected
- Definition Classes
- Suite
-
final
def
scaled(span: Span): Span
- Definition Classes
- ScaledTimeSpans
-
implicit
def
self: ActorRef
- Definition Classes
- ImplicitSender
-
def
setAutoPilot(pilot: AutoPilot): Unit
- Definition Classes
- TestKitBase
-
def
shutdown(actorSystem: ActorSystem, duration: Duration, verifySystemShutdown: Boolean): Unit
- Definition Classes
- TestKitBase
-
def
spanScaleFactor: Double
Configure the ScalaTest time factor from Akka TestKit's test time factor.
Configure the ScalaTest time factor from Akka TestKit's test time factor.
Configure the timefactor in your configuration file like this:
akka.test.timefactor = 3.0
See also: ScaledTimeSpans
- Definition Classes
- AkkaSpanScaleFactorSupport → ScaledTimeSpans
-
val
styleName: String
- Definition Classes
- Suite
-
final
val
succeed: Assertion
- Definition Classes
- Assertions
-
def
suiteId: String
- Definition Classes
- Suite
-
def
suiteName: String
- Definition Classes
- Suite
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
implicit
val
system: ActorSystem
- Definition Classes
- TestKit → TestKitBase
-
def
tags: Map[String, Set[String]]
- Definition Classes
- Suite
-
val
testActor: ActorRef
- Definition Classes
- TestKitBase
-
def
testActorName: String
- Attributes
- protected
- Definition Classes
- TestKitBase
-
def
testDataFor(testName: String, theConfigMap: ConfigMap): TestData
- Definition Classes
- Suite
-
val
testKitSettings: TestKitSettings
- Definition Classes
- TestKitBase
-
def
testNames: Set[String]
- Definition Classes
- Suite
-
def
timeout(value: Span): Timeout
- Definition Classes
- PatienceConfiguration
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
typeCheckedConstraint[A, B](implicit equivalenceOfA: Equivalence[A], ev: <:<[B, A]): CanEqual[A, B]
- Definition Classes
- TripleEquals → TripleEqualsSupport
-
implicit
def
unconstrainedEquality[A, B](implicit equalityOfA: Equality[A]): CanEqual[A, B]
- Definition Classes
- TripleEquals → TripleEqualsSupport
-
def
unwatch(ref: ActorRef): ActorRef
- Definition Classes
- TestKitBase
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
watch(ref: ActorRef): ActorRef
- Definition Classes
- TestKitBase
-
final
def
whenReady[T, U](future: FutureConcept[T])(fun: (T) ⇒ U)(implicit config: PatienceConfig, pos: Position): U
- Definition Classes
- Futures
-
final
def
whenReady[T, U](future: FutureConcept[T], interval: Interval)(fun: (T) ⇒ U)(implicit config: PatienceConfig, pos: Position): U
- Definition Classes
- Futures
-
final
def
whenReady[T, U](future: FutureConcept[T], timeout: Timeout)(fun: (T) ⇒ U)(implicit config: PatienceConfig, pos: Position): U
- Definition Classes
- Futures
-
final
def
whenReady[T, U](future: FutureConcept[T], timeout: Timeout, interval: Interval)(fun: (T) ⇒ U)(implicit config: PatienceConfig, pos: Position): U
- Definition Classes
- Futures
-
def
withClue[T](clue: Any)(fun: ⇒ T): T
- Definition Classes
- Assertions
-
def
withFixture(test: NoArgTest): Outcome
- Attributes
- protected
- Definition Classes
- TestSuite
-
def
within[T](max: FiniteDuration)(f: ⇒ T): T
- Definition Classes
- TestKitBase
-
def
within[T](min: FiniteDuration, max: FiniteDuration)(f: ⇒ T): T
- Definition Classes
- TestKitBase
Deprecated Value Members
-
final
def
execute: Unit
- Definition Classes
- Suite
- Annotations
- @deprecated
- Deprecated
The parameterless execute method has been deprecated and will be removed in a future version of ScalaTest. Please invoke execute with empty parens instead: execute().
-
def
expectNoMsg(max: FiniteDuration): Unit
- Definition Classes
- TestKitBase
- Annotations
- @deprecated
- Deprecated
(Since version 2.5.5) Use expectNoMessage instead
-
def
expectNoMsg(): Unit
- Definition Classes
- TestKitBase
- Annotations
- @deprecated
- Deprecated
(Since version 2.5.5) Use expectNoMessage instead
-
def
trap[T](f: ⇒ T): Throwable
- Definition Classes
- Assertions
- Annotations
- @deprecated
- Deprecated
The trap method is no longer needed for demos in the REPL, which now abreviates stack traces, and will be removed in a future version of ScalaTest