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".
Method Summary |
protected abstract void |
check()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaTestKit.AwaitAssert
public JavaTestKit.AwaitAssert()
JavaTestKit.AwaitAssert
public JavaTestKit.AwaitAssert(scala.concurrent.duration.Duration max)
JavaTestKit.AwaitAssert
public JavaTestKit.AwaitAssert(scala.concurrent.duration.Duration max,
scala.concurrent.duration.Duration interval)
check
protected abstract void check()