Package software.xdev.tci
Class TCI<C extends org.testcontainers.containers.GenericContainer<C>>
java.lang.Object
software.xdev.tci.TCI<C>
Represents basic Testcontainers based infrastructure.
It can be extended and contain other things like e.g. clients, that may also require initialization during startup.
This was created so that you don't have to extend containers and add non-container related stuff like e.g. clients to them. ("You should favor composition over inheritance")
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidsetNetworkAlias(String networkAlias) voidsetOnStopped(Runnable onStopped) voidvoidstop()
-
Constructor Details
-
TCI
-
-
Method Details
-
setOnStopped
-
setNetworkAlias
-
start
-
stop
public void stop() -
onStopped
protected void onStopped() -
getContainer
-
getNetworkAlias
-