akka.remote.testkit

MultiNodeSpec

abstract class MultiNodeSpec extends TestKit with MultiNodeSpecCallbacks

Note: To be able to run tests with everything ignored or excluded by tags you must not use testconductor, or helper methods that use testconductor, from the constructor of your test class. Otherwise the controller node might be shutdown before other nodes have completed and you will see errors like: AskTimeoutException: sending to terminated ref breaks promises. Using lazy val is fine.

Linear Supertypes
MultiNodeSpecCallbacks, TestKit, TestKitBase, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MultiNodeSpec
  2. MultiNodeSpecCallbacks
  3. TestKit
  4. TestKitBase
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MultiNodeSpec(config: MultiNodeConfig)

  2. new MultiNodeSpec(myself: RoleName, _system: ActorSystem, _roles: Seq[RoleName], deployments: (RoleName) ⇒ Seq[String])

Type Members

  1. class AwaitHelper[T] extends AnyRef

Abstract Value Members

  1. abstract def initialParticipants: Int

    TO BE DEFINED BY USER: Defines the number of participants required for starting the test.

    TO BE DEFINED BY USER: Defines the number of participants required for starting the test. This might not be equals to the number of nodes available to the test.

    Must be a def:

    def initialParticipants = 5

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def atStartup(): Unit

    Override this method to do something when the whole test is starting up.

    Override this method to do something when the whole test is starting up.

    Attributes
    protected
  8. def atTermination(): Unit

    Override this method to do something when the whole test is terminating.

    Override this method to do something when the whole test is terminating.

    Attributes
    protected
  9. def awaitCond(p: ⇒ Boolean, max: Duration, interval: Duration): Unit

    Definition Classes
    TestKitBase
  10. implicit def awaitHelper[T](w: Awaitable[T]): AwaitHelper[T]

    Enrich .await() onto all Awaitables, using remaining duration from the innermost enclosing within block or QueryTimeout.

  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. def enterBarrier(name: String*): Unit

    Enter the named barriers in the order given.

    Enter the named barriers in the order given. Use the remaining duration from the innermost enclosing within block or the default BarrierTimeout

  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  15. def expectMsg[T](max: FiniteDuration, obj: T): T

    Definition Classes
    TestKitBase
  16. def expectMsg[T](obj: T): T

    Definition Classes
    TestKitBase
  17. def expectMsgAllClassOf[T](max: FiniteDuration, obj: Class[_ <: T]*): Seq[T]

    Definition Classes
    TestKitBase
  18. def expectMsgAllClassOf[T](obj: Class[_ <: T]*): Seq[T]

    Definition Classes
    TestKitBase
  19. def expectMsgAllConformingOf[T](max: FiniteDuration, obj: Class[_ <: T]*): Seq[T]

    Definition Classes
    TestKitBase
  20. def expectMsgAllConformingOf[T](obj: Class[_ <: T]*): Seq[T]

    Definition Classes
    TestKitBase
  21. def expectMsgAllOf[T](max: FiniteDuration, obj: T*): Seq[T]

    Definition Classes
    TestKitBase
  22. def expectMsgAllOf[T](obj: T*): Seq[T]

    Definition Classes
    TestKitBase
  23. def expectMsgAnyClassOf[C](max: FiniteDuration, obj: Class[_ <: C]*): C

    Definition Classes
    TestKitBase
  24. def expectMsgAnyClassOf[C](obj: Class[_ <: C]*): C

    Definition Classes
    TestKitBase
  25. def expectMsgAnyOf[T](max: FiniteDuration, obj: T*): T

    Definition Classes
    TestKitBase
  26. def expectMsgAnyOf[T](obj: T*): T

    Definition Classes
    TestKitBase
  27. def expectMsgClass[C](max: FiniteDuration, c: Class[C]): C

    Definition Classes
    TestKitBase
  28. def expectMsgClass[C](c: Class[C]): C

    Definition Classes
    TestKitBase
  29. def expectMsgPF[T](max: Duration, hint: String)(f: PartialFunction[Any, T]): T

    Definition Classes
    TestKitBase
  30. def expectMsgType[T](max: FiniteDuration)(implicit t: ClassTag[T]): T

    Definition Classes
    TestKitBase
  31. def expectMsgType[T](implicit t: ClassTag[T]): T

    Definition Classes
    TestKitBase
  32. def expectNoMsg(max: FiniteDuration): Unit

    Definition Classes
    TestKitBase
  33. def expectNoMsg(): Unit

    Definition Classes
    TestKitBase
  34. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  35. def fishForMessage(max: Duration, hint: String)(f: PartialFunction[Any, Boolean]): Any

    Definition Classes
    TestKitBase
  36. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  37. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  38. def ignoreMsg(f: PartialFunction[Any, Boolean]): Unit

    Definition Classes
    TestKitBase
  39. def ignoreNoMsg(): Unit

    Definition Classes
    TestKitBase
  40. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  41. def isNode(nodes: RoleName*): Boolean

    Verify that the running node matches one of the given nodes

  42. def lastSender: ActorRef

    Definition Classes
    TestKitBase
  43. val log: LoggingAdapter

  44. def msgAvailable: Boolean

    Definition Classes
    TestKitBase
  45. final def multiNodeSpecAfterAll(): Unit

    Call this after the all test cases have run.

    Call this after the all test cases have run. NOT after every test case.

    Definition Classes
    MultiNodeSpecMultiNodeSpecCallbacks
  46. final def multiNodeSpecBeforeAll(): Unit

    Call this before the start of the test run.

    Call this before the start of the test run. NOT before every test case.

    Definition Classes
    MultiNodeSpecMultiNodeSpecCallbacks
  47. val myself: RoleName

  48. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  49. def node(role: RoleName): ActorPath

    Query the controller for the transport address of the given node (by role name) and return that as an ActorPath for easy composition:

    Query the controller for the transport address of the given node (by role name) and return that as an ActorPath for easy composition:

    val serviceA = system.actorFor(node("master") / "user" / "serviceA")
  50. final def notify(): Unit

    Definition Classes
    AnyRef
  51. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  52. def now: FiniteDuration

    Definition Classes
    TestKitBase
  53. def receiveN(n: Int, max: FiniteDuration): Seq[AnyRef]

    Definition Classes
    TestKitBase
  54. def receiveN(n: Int): Seq[AnyRef]

    Definition Classes
    TestKitBase
  55. def receiveOne(max: Duration): AnyRef

    Definition Classes
    TestKitBase
  56. def receiveWhile[T](max: Duration, idle: Duration, messages: Int)(f: PartialFunction[AnyRef, T]): Seq[T]

    Definition Classes
    TestKitBase
  57. def remaining: FiniteDuration

    Definition Classes
    TestKitBase
  58. def remainingOr(duration: FiniteDuration): FiniteDuration

    Definition Classes
    TestKitBase
  59. def roles: Seq[RoleName]

    All registered roles

  60. def runOn(nodes: RoleName*)(thunk: ⇒ Unit): Unit

    Execute the given block of code only on the given nodes (names according to the roleMap).

  61. def setAutoPilot(pilot: AutoPilot): Unit

    Definition Classes
    TestKitBase
  62. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  63. implicit val system: ActorSystem

    Definition Classes
    TestKit → TestKitBase
  64. val testActor: ActorRef

    Definition Classes
    TestKitBase
  65. val testConductor: TestConductorExt

    Access to the barriers, failure injection, etc.

    Access to the barriers, failure injection, etc. The extension will have been started either in Conductor or Player mode when the constructor of MultiNodeSpec finishes, i.e. do not call the start*() methods yourself!

  66. val testKitSettings: TestKitSettings

    Definition Classes
    TestKitBase
  67. def toString(): String

    Definition Classes
    AnyRef → Any
  68. def unwatch(ref: ActorRef): ActorRef

    Definition Classes
    TestKitBase
  69. def verifySystemShutdown: Boolean

    Override this and return true to assert that the shutdown of the ActorSystem was done properly.

  70. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  71. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  72. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  73. def watch(ref: ActorRef): ActorRef

    Definition Classes
    TestKitBase
  74. def within[T](max: FiniteDuration)(f: ⇒ T): T

    Definition Classes
    TestKitBase
  75. def within[T](min: FiniteDuration, max: FiniteDuration)(f: ⇒ T): T

    Definition Classes
    TestKitBase

Inherited from MultiNodeSpecCallbacks

Inherited from TestKit

Inherited from TestKitBase

Inherited from AnyRef

Inherited from Any

Ungrouped