Class TestKitSettings


  • public final class TestKitSettings
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      TestKitSettings​(com.typesafe.config.Config config)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static TestKitSettings apply​(ActorSystem<?> system)
      Reads configuration settings from akka.actor.testkit.typed section.
      static TestKitSettings apply​(com.typesafe.config.Config config)
      Reads configuration settings from given Config that must have the same layout as the akka.actor.testkit.typed section.
      com.typesafe.config.Config config()  
      static TestKitSettings create​(ActorSystem<?> system)
      Java API: Reads configuration settings from akka.actor.testkit.typed section.
      static TestKitSettings create​(com.typesafe.config.Config config)
      Reads configuration settings from given Config that must have the same layout as the akka.actor.testkit.typed section.
      scala.concurrent.duration.FiniteDuration DefaultActorSystemShutdownTimeout()
      Dilated with `TestTimeFactor`.
      Timeout DefaultTimeout()
      Dilated with `TestTimeFactor`.
      java.time.Duration dilated​(java.time.Duration duration)
      Java API: Scale the duration with the configured TestTimeFactor
      scala.concurrent.duration.FiniteDuration dilated​(scala.concurrent.duration.FiniteDuration duration)
      Scala API: Scale the duration with the configured TestTimeFactor
      scala.concurrent.duration.FiniteDuration ExpectNoMessageDefaultTimeout()
      Dilated with `TestTimeFactor`.
      scala.concurrent.duration.FiniteDuration FilterLeeway()
      Dilated with `TestTimeFactor`.
      scala.concurrent.duration.FiniteDuration SingleExpectDefaultTimeout()
      Dilated with `TestTimeFactor`.
      double TestTimeFactor()  
      boolean ThrowOnShutdownTimeout()  
      • Methods inherited from class java.lang.Object

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

      • TestKitSettings

        public TestKitSettings​(com.typesafe.config.Config config)
    • Method Detail

      • apply

        public static TestKitSettings apply​(ActorSystem<?> system)
        Reads configuration settings from akka.actor.testkit.typed section.
      • apply

        public static TestKitSettings apply​(com.typesafe.config.Config config)
        Reads configuration settings from given Config that must have the same layout as the akka.actor.testkit.typed section.
      • create

        public static TestKitSettings create​(ActorSystem<?> system)
        Java API: Reads configuration settings from akka.actor.testkit.typed section.
      • create

        public static TestKitSettings create​(com.typesafe.config.Config config)
        Reads configuration settings from given Config that must have the same layout as the akka.actor.testkit.typed section.
      • config

        public com.typesafe.config.Config config()
      • TestTimeFactor

        public double TestTimeFactor()
      • SingleExpectDefaultTimeout

        public scala.concurrent.duration.FiniteDuration SingleExpectDefaultTimeout()
        Dilated with `TestTimeFactor`.
      • ExpectNoMessageDefaultTimeout

        public scala.concurrent.duration.FiniteDuration ExpectNoMessageDefaultTimeout()
        Dilated with `TestTimeFactor`.
      • DefaultTimeout

        public Timeout DefaultTimeout()
        Dilated with `TestTimeFactor`.
      • DefaultActorSystemShutdownTimeout

        public scala.concurrent.duration.FiniteDuration DefaultActorSystemShutdownTimeout()
        Dilated with `TestTimeFactor`.
      • ThrowOnShutdownTimeout

        public boolean ThrowOnShutdownTimeout()
      • FilterLeeway

        public scala.concurrent.duration.FiniteDuration FilterLeeway()
        Dilated with `TestTimeFactor`.
      • dilated

        public scala.concurrent.duration.FiniteDuration dilated​(scala.concurrent.duration.FiniteDuration duration)
        Scala API: Scale the duration with the configured TestTimeFactor
      • dilated

        public java.time.Duration dilated​(java.time.Duration duration)
        Java API: Scale the duration with the configured TestTimeFactor