akka.testkit
Class JavaTestKit.AwaitAssert

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

Constructor Detail

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)
Method Detail

check

protected abstract void check()