Class ArquillianEventObserver

java.lang.Object
org.operaton.bpm.integrationtest.ArquillianEventObserver

public class ArquillianEventObserver extends Object
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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onContainerRegistryEvent(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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.type These should be passed as VM arguments for local testing and are preconfigured in the appropriate Maven profiles
      Parameters:
      registry - arquillian container registry
      serviceLoader - arquillian server loader