Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- afterPropertiesSet() - Method in class org.springframework.boot.testcontainers.service.connection.ContainerConnectionDetailsFactory.ContainerConnectionDetails
- ANY_CONNECTION_NAME - Static variable in class org.springframework.boot.testcontainers.service.connection.ContainerConnectionDetailsFactory
-
Constant passed to the constructor when any connection name is accepted.
- attach(Environment) - Static method in class org.springframework.boot.testcontainers.properties.TestcontainersPropertySource
C
- ContainerConnectionDetails(ContainerConnectionSource<C>) - Constructor for class org.springframework.boot.testcontainers.service.connection.ContainerConnectionDetailsFactory.ContainerConnectionDetails
-
Create a new
ContainerConnectionDetailsFactory.ContainerConnectionDetails
instance. - ContainerConnectionDetailsFactory<C extends org.testcontainers.containers.Container<?>,
D extends org.springframework.boot.autoconfigure.service.connection.ConnectionDetails> - Class in org.springframework.boot.testcontainers.service.connection -
Base class for
ConnectionDetailsFactory
implementations that provideConnectionDetails
from aContainerConnectionSource
. - ContainerConnectionDetailsFactory() - Constructor for class org.springframework.boot.testcontainers.service.connection.ContainerConnectionDetailsFactory
-
Create a new
ContainerConnectionDetailsFactory
instance that acceptsany connection name
. - ContainerConnectionDetailsFactory(String, String...) - Constructor for class org.springframework.boot.testcontainers.service.connection.ContainerConnectionDetailsFactory
-
Create a new
ContainerConnectionDetailsFactory
instance with the given connection name restriction. - ContainerConnectionDetailsFactory.ContainerConnectionDetails<C extends org.testcontainers.containers.Container<?>> - Class in org.springframework.boot.testcontainers.service.connection
-
Base class for
ConnectionDetails
results that are backed by aContainerConnectionSource
. - ContainerConnectionSource<C extends org.testcontainers.containers.Container<?>> - Class in org.springframework.boot.testcontainers.service.connection
-
Passed to
ContainerConnectionDetailsFactory
to provide details of the@ServiceConnection
annotatedContainer
that provides the service. - containsProperty(String) - Method in class org.springframework.boot.testcontainers.properties.TestcontainersPropertySource
G
- getAnnotations() - Method in interface org.springframework.boot.testcontainers.beans.TestcontainerBeanDefinition
-
Return any annotations declared alongside the container.
- getConnectionDetails(ContainerConnectionSource<C>) - Method in class org.springframework.boot.testcontainers.service.connection.ContainerConnectionDetailsFactory
- getContainer() - Method in class org.springframework.boot.testcontainers.service.connection.ContainerConnectionDetailsFactory.ContainerConnectionDetails
-
Return the container that back this connection details instance.
- getContainerConnectionDetails(ContainerConnectionSource<C>) - Method in class org.springframework.boot.testcontainers.service.connection.ContainerConnectionDetailsFactory
- getContainerImageName() - Method in interface org.springframework.boot.testcontainers.beans.TestcontainerBeanDefinition
-
Return the container image name or
null
if the image name is not yet known. - getOrigin() - Method in class org.springframework.boot.testcontainers.service.connection.ContainerConnectionDetailsFactory.ContainerConnectionDetails
- getOrigin() - Method in class org.springframework.boot.testcontainers.service.connection.ContainerConnectionSource
- getProperty(String) - Method in class org.springframework.boot.testcontainers.properties.TestcontainersPropertySource
- getPropertyNames() - Method in class org.springframework.boot.testcontainers.properties.TestcontainersPropertySource
I
- ImportTestcontainers - Annotation Interface in org.springframework.boot.testcontainers.context
-
Imports idiomatic Testcontainer declaration classes into the Spring
ApplicationContext
. - initialize(ConfigurableApplicationContext) - Method in class org.springframework.boot.testcontainers.lifecycle.TestcontainersLifecycleApplicationContextInitializer
N
- name() - Element in annotation interface org.springframework.boot.testcontainers.service.connection.ServiceConnection
-
The name of the service being connected to.
O
- org.springframework.boot.testcontainers.beans - package org.springframework.boot.testcontainers.beans
-
Spring bean support classes for Testcontainers.
- org.springframework.boot.testcontainers.context - package org.springframework.boot.testcontainers.context
-
Spring context support classes for Testcontainers.
- org.springframework.boot.testcontainers.lifecycle - package org.springframework.boot.testcontainers.lifecycle
-
Utilities and helpers to allow testcontainers to be used in a Spring
ApplicationContext
. - org.springframework.boot.testcontainers.properties - package org.springframework.boot.testcontainers.properties
-
Dynamic container properties support.
- org.springframework.boot.testcontainers.service.connection - package org.springframework.boot.testcontainers.service.connection
-
General support for service connections in tests.
P
- PARALLEL - Enum constant in enum class org.springframework.boot.testcontainers.lifecycle.TestcontainersStartup
-
Startup containers in parallel.
- PROPERTY - Static variable in enum class org.springframework.boot.testcontainers.lifecycle.TestcontainersStartup
-
The
Environment
property used to change theTestcontainersStartup
strategy.
S
- SEQUENTIAL - Enum constant in enum class org.springframework.boot.testcontainers.lifecycle.TestcontainersStartup
-
Startup containers sequentially.
- ServiceConnection - Annotation Interface in org.springframework.boot.testcontainers.service.connection
-
Annotation used to indicate that a field or method is a
ContainerConnectionSource
which provides a service that can be connected to. - ServiceConnectionAutoConfiguration - Class in org.springframework.boot.testcontainers.service.connection
T
- TestcontainerBeanDefinition - Interface in org.springframework.boot.testcontainers.beans
-
Extended
BeanDefinition
interface used to register testcontainer beans. - TestcontainersLifecycleApplicationContextInitializer - Class in org.springframework.boot.testcontainers.lifecycle
-
ApplicationContextInitializer
to manage the lifecycle ofstartable containers
. - TestcontainersLifecycleApplicationContextInitializer() - Constructor for class org.springframework.boot.testcontainers.lifecycle.TestcontainersLifecycleApplicationContextInitializer
- TestcontainersPropertySource - Class in org.springframework.boot.testcontainers.properties
-
EnumerablePropertySource
backed by a map with values supplied from one or moretestcontainers
. - TestcontainersPropertySourceAutoConfiguration - Class in org.springframework.boot.testcontainers.properties
-
Auto-configuration
to addTestcontainersPropertySource
support. - TestcontainersStartup - Enum Class in org.springframework.boot.testcontainers.lifecycle
-
Testcontainers startup strategies.
- toString() - Method in class org.springframework.boot.testcontainers.service.connection.ContainerConnectionSource
- type() - Element in annotation interface org.springframework.boot.testcontainers.service.connection.ServiceConnection
-
A restriction to types of
ConnectionDetails
that can be created from this connection.
V
- value() - Element in annotation interface org.springframework.boot.testcontainers.context.ImportTestcontainers
-
The declaration classes to import.
- value() - Element in annotation interface org.springframework.boot.testcontainers.service.connection.ServiceConnection
-
The name of the service being connected to.
- valueOf(String) - Static method in enum class org.springframework.boot.testcontainers.lifecycle.TestcontainersStartup
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.springframework.boot.testcontainers.lifecycle.TestcontainersStartup
-
Returns an array containing the constants of this enum class, in the order they are declared.
All Classes and Interfaces|All Packages|Constant Field Values