akka.testkit
Class AkkaSpec

java.lang.Object
  extended by akka.testkit.TestKit
      extended by akka.testkit.AkkaSpec
All Implemented Interfaces:
TestKitBase, WatchedByCoroner
Direct Known Subclasses:
JavaTestKitSpec, TestActorRefSpec, TestActorsSpec, TestFSMRefSpec, TestProbeSpec, TestTimeSpec

public abstract class AkkaSpec
extends TestKit
implements WatchedByCoroner


Constructor Summary
AkkaSpec()
           
AkkaSpec(ActorSystem _system)
           
AkkaSpec(com.typesafe.config.Config config)
           
 
Method Summary
 void afterAll()
           
protected  void afterTermination()
           
protected  void atStartup()
           
 void beforeAll()
           
protected  void beforeTermination()
           
 scala.concurrent.duration.FiniteDuration expectedTestDuration()
           
static java.lang.String getCallerName(java.lang.Class<?> clazz)
           
 boolean invokeBeforeAllAndAfterAllEvenIfNoTestsAreExpected()
           
 LoggingAdapter log()
           
static com.typesafe.config.Config mapToConfig(scala.collection.immutable.Map<java.lang.String,java.lang.Object> map)
           
 void muteDeadLetters(scala.collection.Seq<java.lang.Class<?>> messageClasses, ActorSystem sys)
           
 void spawn(java.lang.String dispatcherId, scala.Function0<scala.runtime.BoxedUnit> body)
           
static com.typesafe.config.Config testConf()
           
 
Methods inherited from class akka.testkit.TestKit
awaitCond, dilated, now, shutdownActorSystem, system, testActorId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface akka.testkit.WatchedByCoroner
coronerWatch, displayThreadCounts, startAndStopDuration, startCoroner, stopCoroner
 
Methods inherited from interface akka.testkit.TestKitBase
awaitAssert, awaitCond, checkMissingAndUnexpected, end, expectMsg_internal, expectMsg, expectMsg, expectMsg, expectMsgAllClassOf, expectMsgAllClassOf, expectMsgAllConformingOf, expectMsgAllConformingOf, expectMsgAllOf_internal, expectMsgAllOf, expectMsgAllOf, expectMsgAnyClassOf_internal, expectMsgAnyClassOf, expectMsgAnyClassOf, expectMsgAnyOf_internal, expectMsgAnyOf, expectMsgAnyOf, expectMsgClass_internal, expectMsgClass, expectMsgClass, expectMsgPF, expectMsgType, expectMsgType, expectNoMsg_internal, expectNoMsg, expectNoMsg, expectTerminated, fishForMessage, format, ignoreMsg, ignoreNoMsg, internalExpectMsgAllClassOf, internalExpectMsgAllConformingOf, lastMessage, lastSender, lastWasNoMsg, msgAvailable, now, queue, receiveN_internal, receiveN, receiveN, receiveOne, receiveWhile, remaining, remainingOr, remainingOrDilated, setAutoPilot, shutdown, testActor, testKitSettings, unwatch, watch, within, within
 

Constructor Detail

AkkaSpec

public AkkaSpec(ActorSystem _system)

AkkaSpec

public AkkaSpec(com.typesafe.config.Config config)

AkkaSpec

public AkkaSpec()
Method Detail

testConf

public static com.typesafe.config.Config testConf()

mapToConfig

public static com.typesafe.config.Config mapToConfig(scala.collection.immutable.Map<java.lang.String,java.lang.Object> map)

getCallerName

public static java.lang.String getCallerName(java.lang.Class<?> clazz)

log

public LoggingAdapter log()

invokeBeforeAllAndAfterAllEvenIfNoTestsAreExpected

public boolean invokeBeforeAllAndAfterAllEvenIfNoTestsAreExpected()

beforeAll

public final void beforeAll()

afterAll

public final void afterAll()

atStartup

protected void atStartup()

beforeTermination

protected void beforeTermination()

afterTermination

protected void afterTermination()

spawn

public void spawn(java.lang.String dispatcherId,
                  scala.Function0<scala.runtime.BoxedUnit> body)

expectedTestDuration

public scala.concurrent.duration.FiniteDuration expectedTestDuration()
Specified by:
expectedTestDuration in interface WatchedByCoroner

muteDeadLetters

public void muteDeadLetters(scala.collection.Seq<java.lang.Class<?>> messageClasses,
                            ActorSystem sys)