Class TestcontainersPropertySource
public class TestcontainersPropertySource
extends org.springframework.core.env.MapPropertySource
EnumerablePropertySource
backed by a map with values supplied from one or more
testcontainers
.- Since:
- 3.1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.core.env.PropertySource
org.springframework.core.env.PropertySource.StubPropertySource
-
Field Summary
Fields inherited from class org.springframework.core.env.PropertySource
logger, name, source
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.test.context.DynamicPropertyRegistry
attach
(org.springframework.core.env.Environment environment) static org.springframework.test.context.DynamicPropertyRegistry
attach
(org.springframework.core.env.Environment environment, org.springframework.beans.factory.support.BeanDefinitionRegistry registry) getProperty
(String name) Methods inherited from class org.springframework.core.env.MapPropertySource
containsProperty, getPropertyNames
Methods inherited from class org.springframework.core.env.PropertySource
equals, getName, getSource, hashCode, named, toString
-
Method Details
-
getProperty
- Overrides:
getProperty
in classorg.springframework.core.env.MapPropertySource
-
attach
public static org.springframework.test.context.DynamicPropertyRegistry attach(org.springframework.core.env.Environment environment) -
attach
public static org.springframework.test.context.DynamicPropertyRegistry attach(org.springframework.core.env.Environment environment, org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
-