Package io.ebean.test.containers
Class ContainerFactory
java.lang.Object
io.ebean.test.containers.ContainerFactory
Creates containers from properties with the ability to start and stop them.
-
Constructor Summary
ConstructorsConstructorDescriptionContainerFactory(Properties properties) Create given properties and reading system and env properties for 'run with'.ContainerFactory(Properties properties, String runWith) Create given the properties and runWith. -
Method Summary
Modifier and TypeMethodDescriptionReturn the config for a given platform.Return the container for a given platform.voidStart all the containers.voidstartContainers(Consumer<String> logging) Start all the containers with a consumer for logging start descriptions.voidStop all containers using the stopMode which defaults to also removing the containers.voidstopContainers(Consumer<String> logging) Stop all the containers with a consumer for logging stop descriptions.voidstopOnly()Stop all containers (without removing the containers).voidStop all the containers (without remove) with a consumer for logging stop descriptions.
-
Constructor Details
-
ContainerFactory
Create given properties and reading system and env properties for 'run with'. -
ContainerFactory
Create given the properties and runWith.- Parameters:
properties- The properties to configure the containersrunWith- Comma delimited string with container to run
-
-
Method Details
-
startContainers
public void startContainers()Start all the containers. -
startContainers
Start all the containers with a consumer for logging start descriptions. -
stopContainers
public void stopContainers()Stop all containers using the stopMode which defaults to also removing the containers. -
stopContainers
Stop all the containers with a consumer for logging stop descriptions. -
stopOnly
public void stopOnly()Stop all containers (without removing the containers). -
stopOnly
Stop all the containers (without remove) with a consumer for logging stop descriptions. -
config
Return the config for a given platform. -
container
Return the container for a given platform.
-