Class TestConfigSource

  • All Implemented Interfaces:
    org.eclipse.microprofile.config.spi.ConfigSource

    public class TestConfigSource
    extends Object
    implements org.eclipse.microprofile.config.spi.ConfigSource
    A config source used during tests. Amended/overridden by values exposed from test lifecycle listeners.
    • Constructor Detail

      • TestConfigSource

        public TestConfigSource()
    • Method Detail

      • isItTest

        public static boolean isItTest()
      • getProperties

        public Map<String,​String> getProperties()
        Specified by:
        getProperties in interface org.eclipse.microprofile.config.spi.ConfigSource
      • getValue

        public String getValue​(String propertyName)
        Specified by:
        getValue in interface org.eclipse.microprofile.config.spi.ConfigSource
      • getName

        public String getName()
        Specified by:
        getName in interface org.eclipse.microprofile.config.spi.ConfigSource
      • getPropertyNames

        public Set<String> getPropertyNames()
        Specified by:
        getPropertyNames in interface org.eclipse.microprofile.config.spi.ConfigSource
      • waitForSeconds

        public static int waitForSeconds()