Class/Object

com.dimafeng.testcontainers

LazyContainer

Related Docs: object LazyContainer | package testcontainers

Permalink

class LazyContainer[T <: Container] extends Container with TestLifecycleAware

Lazy container wrapper aims to solve the problem of cross-container dependencies in MultipleContainers when a second container requires some after start data from a first one (e.g. an application container needs JDBC url of a container with a database - in that case the url becomes available after the database container has started)

You don't need to wrap your containers into the LazyContainer manually when you pass your containers in the MultipleContainers- there is implicit conversion for that.

Linear Supertypes
TestLifecycleAware, Container, Stoppable, Andable, Startable, AutoCloseable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LazyContainer
  2. TestLifecycleAware
  3. Container
  4. Stoppable
  5. Andable
  6. Startable
  7. AutoCloseable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LazyContainer(factory: ⇒ T)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def afterTest(description: TestDescription, throwable: Option[Throwable]): Unit

    Permalink
    Definition Classes
    LazyContainerTestLifecycleAware
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def beforeTest(description: TestDescription): Unit

    Permalink
    Definition Classes
    LazyContainerTestLifecycleAware
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  8. def close(): Unit

    Permalink
    Definition Classes
    Stoppable → AutoCloseable
  9. lazy val container: T

    Permalink
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def foreach(f: (Stoppable) ⇒ Unit): Unit

    Permalink
    Definition Classes
    Andable
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  14. def getDependencies(): Set[Startable]

    Permalink
    Definition Classes
    Startable
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  20. def start(): Unit

    Permalink
    Definition Classes
    LazyContainer → Startable
  21. def stop(): Unit

    Permalink
    Definition Classes
    LazyContainerStoppableAndable → Startable
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  24. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def failed(e: Throwable)(implicit description: Description): Unit

    Permalink
    Definition Classes
    LazyContainerContainer
    Annotations
    @deprecated
    Deprecated

    Use stop and/or TestLifecycleAware.afterTest instead

  2. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

  3. def finished()(implicit description: Description): Unit

    Permalink
    Definition Classes
    LazyContainerContainer
    Annotations
    @deprecated
    Deprecated

    Use stop instead

  4. def starting()(implicit description: Description): Unit

    Permalink
    Definition Classes
    LazyContainerContainer
    Annotations
    @deprecated
    Deprecated

    Use start instead

  5. def succeeded()(implicit description: Description): Unit

    Permalink
    Definition Classes
    LazyContainerContainer
    Annotations
    @deprecated
    Deprecated

    Use stop and/or TestLifecycleAware.afterTest instead

Inherited from TestLifecycleAware

Inherited from Container

Inherited from Stoppable

Inherited from Andable

Inherited from Startable

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped