Class LocalDB

java.lang.Object
software.tnb.db.common.local.LocalDB
All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback, org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.Extension, Deployable

public class LocalDB extends Object implements Deployable
  • Constructor Details

    • LocalDB

      public LocalDB(SQL sqlService, int port, org.testcontainers.containers.wait.strategy.WaitStrategy waitStrategy)
  • Method Details

    • deploy

      public void deploy()
      Specified by:
      deploy in interface Deployable
    • undeploy

      public void undeploy()
      Specified by:
      undeploy in interface Deployable
    • restart

      public void restart(Runnable onContainerStopped)
    • openResources

      public void openResources()
      Specified by:
      openResources in interface Deployable
    • closeResources

      public void closeResources()
      Specified by:
      closeResources in interface Deployable
    • getPort

      public int getPort()
    • getHost

      public String getHost()