Class TestcontainersPropertySource

java.lang.Object
org.springframework.core.env.PropertySource<T>
org.springframework.core.env.EnumerablePropertySource<Map<String,Supplier<Object>>>
org.springframework.boot.testcontainers.properties.TestcontainersPropertySource

public class TestcontainersPropertySource extends org.springframework.core.env.EnumerablePropertySource<Map<String,Supplier<Object>>>
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 Type
    Method
    Description
    static org.springframework.test.context.DynamicPropertyRegistry
    attach(org.springframework.core.env.Environment environment)
     
    boolean
     
     
     

    Methods inherited from class org.springframework.core.env.PropertySource

    equals, getName, getSource, hashCode, named, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Method Details

    • getProperty

      public Object getProperty(String name)
      Specified by:
      getProperty in class org.springframework.core.env.PropertySource<Map<String,Supplier<Object>>>
    • containsProperty

      public boolean containsProperty(String name)
      Overrides:
      containsProperty in class org.springframework.core.env.EnumerablePropertySource<Map<String,Supplier<Object>>>
    • getPropertyNames

      public String[] getPropertyNames()
      Specified by:
      getPropertyNames in class org.springframework.core.env.EnumerablePropertySource<Map<String,Supplier<Object>>>
    • attach

      public static org.springframework.test.context.DynamicPropertyRegistry attach(org.springframework.core.env.Environment environment)