akka.actor.mailbox
Class DurableMailboxSpec

java.lang.Object
  extended by akka.testkit.TestKit
      extended by akka.actor.mailbox.DurableMailboxSpec
All Implemented Interfaces:
TestKitBase

public abstract class DurableMailboxSpec
extends TestKit

Reusable test fixture for durable mailboxes. Implements a few basic tests. More tests can be added in concrete subclass.

Subclass must define dispatcher in the supplied config for the specific backend. The id of the dispatcher should be the same as the -dispatcher.


Constructor Summary
DurableMailboxSpec(ActorSystem system, java.lang.String backendName)
           
DurableMailboxSpec(java.lang.String backendName, java.lang.String config)
          Subclass must define dispatcher in the supplied config for the specific backend.
 
Method Summary
 void afterAll()
           
 void afterTermination()
          May be implemented in concrete subclass to do additional things once after all test cases have been run.
protected  void atStartup()
          May be implemented in concrete subclass to do additional things once before test cases are run.
 java.lang.String backendName()
           
 void beforeAll()
           
 ActorRef createMailboxTestActor(Props props, java.lang.String id)
           
static com.typesafe.config.Config fallbackConfig()
           
protected  void streamMustContain(java.io.InputStream in, java.lang.String words)
           
 
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.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

DurableMailboxSpec

public DurableMailboxSpec(ActorSystem system,
                          java.lang.String backendName)

DurableMailboxSpec

public DurableMailboxSpec(java.lang.String backendName,
                          java.lang.String config)
Subclass must define dispatcher in the supplied config for the specific backend. The id of the dispatcher should be the same as the -dispatcher.

Parameters:
backendName - (undocumented)
config - (undocumented)
Method Detail

fallbackConfig

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

backendName

public java.lang.String backendName()

beforeAll

public final void beforeAll()

atStartup

protected void atStartup()
May be implemented in concrete subclass to do additional things once before test cases are run.


afterAll

public final void afterAll()

afterTermination

public void afterTermination()
May be implemented in concrete subclass to do additional things once after all test cases have been run.


streamMustContain

protected void streamMustContain(java.io.InputStream in,
                                 java.lang.String words)

createMailboxTestActor

public ActorRef createMailboxTestActor(Props props,
                                       java.lang.String id)