Package akka.testkit

Class 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AwaitAssert

        public AwaitAssert()
      • AwaitAssert

        public AwaitAssert​(scala.concurrent.duration.Duration max)
      • AwaitAssert

        public AwaitAssert​(scala.concurrent.duration.Duration max,
                           scala.concurrent.duration.Duration interval)
    • Method Detail

      • check

        protected abstract void check()