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 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.
        Parameters:
        system - (undocumented)
        Returns:
        (undocumented)
      • 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.
        Parameters:
        config - (undocumented)
        Returns:
        (undocumented)
      • create

        public static TestKitSettings create​(ActorSystem<?> system)
        Java API: Reads configuration settings from akka.actor.testkit.typed section.
        Parameters:
        system - (undocumented)
        Returns:
        (undocumented)
      • 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.
        Parameters:
        config - (undocumented)
        Returns:
        (undocumented)
      • 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()
      • dilated

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

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