Package csw.testkit

Class DatabaseTestKit$


  • public class DatabaseTestKit$
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static DatabaseTestKit$ MODULE$
      Static reference to the singleton instance of this Scala object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DatabaseTestKit apply​(akka.actor.typed.ActorSystem<akka.actor.typed.SpawnProtocol.Command> actorSystem, TestKitSettings testKitSettings)
      Create a DatabaseTestKit
      • Methods inherited from class java.lang.Object

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

      • MODULE$

        public static final DatabaseTestKit$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • DatabaseTestKit$

        public DatabaseTestKit$()
    • Method Detail

      • apply

        public DatabaseTestKit apply​(akka.actor.typed.ActorSystem<akka.actor.typed.SpawnProtocol.Command> actorSystem,
                                     TestKitSettings testKitSettings)
        Create a DatabaseTestKit

        When the test has completed you should shutdown the Database service with EmbeddedPG.shutdown().

        Parameters:
        actorSystem - (undocumented)
        testKitSettings - (undocumented)
        Returns:
        handle to DatabaseTestKit which can be used to start and stop Database service