org.apache.pekko.remote.testkit

Members list

Type members

Classlikes

abstract class MultiNodeConfig

Configure the role names and participants of the test, including configuration settings.

Configure the role names and participants of the test, including configuration settings.

Attributes

Source
MultiNodeSpec.scala
Supertypes
class Object
trait Matchable
class Any
object MultiNodeSpec

Attributes

Companion
class
Source
MultiNodeSpec.scala
Supertypes
class Object
trait Matchable
class Any
Self type
abstract class MultiNodeSpec(val myself: RoleName, _system: ActorSystem, _roles: Seq[RoleName], deployments: RoleName => Seq[String]) extends TestKit, 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.

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.

Attributes

Companion
object
Source
MultiNodeSpec.scala
Supertypes
class TestKit
trait TestKitBase
class Object
trait Matchable
class Any
Show all

Use this to hook MultiNodeSpec into your test framework lifecycle, either by having your test extend MultiNodeSpec and call these methods or by creating a trait that calls them and then mixing that trait with your test together with MultiNodeSpec.

Use this to hook MultiNodeSpec into your test framework lifecycle, either by having your test extend MultiNodeSpec and call these methods or by creating a trait that calls them and then mixing that trait with your test together with MultiNodeSpec.

Example trait for MultiNodeSpec with ScalaTest

trait STMultiNodeSpec extends MultiNodeSpecCallbacks with AnyWordSpecLike with Matchers with BeforeAndAfterAll {
 override def beforeAll() = multiNodeSpecBeforeAll()
 override def afterAll() = multiNodeSpecAfterAll()
}

Attributes

Source
MultiNodeSpec.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes