Package software.tnb.db.common.local
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcloseResources()voiddeploy()StringgetHost()intgetPort()voidopenResources()voidundeploy()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.tnb.common.deployment.Deployable
afterAll, beforeAll, restart
-
-
-
-
Constructor Detail
-
LocalDB
public LocalDB(SQL sqlService, int port, org.testcontainers.containers.wait.strategy.WaitStrategy waitStrategy)
-
-
Method Detail
-
deploy
public void deploy()
- Specified by:
deployin interfaceDeployable
-
undeploy
public void undeploy()
- Specified by:
undeployin interfaceDeployable
-
openResources
public void openResources()
- Specified by:
openResourcesin interfaceDeployable
-
closeResources
public void closeResources()
- Specified by:
closeResourcesin interfaceDeployable
-
getPort
public int getPort()
-
getHost
public String getHost()
-
-