Package org.operaton.bpm.integrationtest
Class ArquillianEventObserver
java.lang.Object
org.operaton.bpm.integrationtest.ArquillianEventObserver
Observer for Arquillian lifecycle events.
Observes ContainerRegistry event and facilitates the ability to start jdbc database
container before and provide connection information to Arquillian container.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonContainerRegistryEvent(org.jboss.arquillian.container.spi.ContainerRegistry registry, org.jboss.arquillian.core.spi.ServiceLoader serviceLoader) Listens for the Arquillian ContainerRegistry event to start the appropriate jdbc database container via testcontainers before the actual Arquillian container is started.
-
Constructor Details
-
ArquillianEventObserver
public ArquillianEventObserver()
-
-
Method Details
-
onContainerRegistryEvent
public void onContainerRegistryEvent(@Observes org.jboss.arquillian.container.spi.ContainerRegistry registry, org.jboss.arquillian.core.spi.ServiceLoader serviceLoader) Listens for the Arquillian ContainerRegistry event to start the appropriate jdbc database container via testcontainers before the actual Arquillian container is started. Which database container is started depends on two environment variables:database.typeThese should be passed as VM arguments for local testing and are preconfigured in the appropriate Maven profiles- Parameters:
registry- arquillian container registryserviceLoader- arquillian server loader
-