Class OnDemandTCIFactory<C extends org.testcontainers.containers.GenericContainer<C>,I extends TCI<C>>

java.lang.Object
software.xdev.tci.factory.BaseTCIFactory<C,I>
software.xdev.tci.factory.ondemand.OnDemandTCIFactory<C,I>
All Implemented Interfaces:
AutoCloseable, TCIFactory<C,I>

public class OnDemandTCIFactory<C extends org.testcontainers.containers.GenericContainer<C>,I extends TCI<C>> extends BaseTCIFactory<C,I>
A simple implementation of TCIFactory.

Creates new infrastructure on demand and allows customizing the container.

It's recommended to use this for certain infrastructure that is only required for a few tests.

  • Field Details

  • Constructor Details

  • Method Details

    • newInternal

      protected I newInternal(org.testcontainers.containers.Network network, Consumer<C> buildContainerCustomizer)
    • getNew

      public I getNew(org.testcontainers.containers.Network network, Consumer<C> buildContainerCustomizer)
    • getNew

      public I getNew(org.testcontainers.containers.Network network)