Package akka.testkit
Class JavaTestKit.AwaitAssert
- java.lang.Object
-
- akka.testkit.JavaTestKit.AwaitAssert
-
- Enclosing class:
- JavaTestKit
public abstract class JavaTestKit.AwaitAssert extends java.lang.Object
Await until the given assert does not throw an exception or the timeout expires, whichever comes first. If the timeout expires the last exception is thrown.If no timeout is given, take it from the innermost enclosing
Within
block.Note that the timeout is scaled using Duration.dilated, which uses the configuration entry "akka.test.timefactor".
-
-
Constructor Summary
Constructors Constructor Description AwaitAssert()
AwaitAssert(scala.concurrent.duration.Duration max)
AwaitAssert(scala.concurrent.duration.Duration max, scala.concurrent.duration.Duration interval)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description protected abstract void
check()
-