Class ConfigConfigurer

    • Method Detail

      • getConfigFor

        public Config getConfigFor​(@Nonnull
                                   String packageName)
        Description copied from interface: Configurer
        Returns the configuration for a given package.

        This method will be called once for package in the hierarchy leading to the test class being configured. For example, for com.example.FooTest, this method will be called three times with "com.example", "@com", and "" (representing the top level package).

        Specified by:
        getConfigFor in interface Configurer<Config>
        Parameters:
        packageName - the name of the package, or the empty string representing the top level unnamed package
        Returns:
        a configuration object, or null if the given properties has no relevant data for this configuration
      • getConfigFor

        public Config getConfigFor​(@Nonnull
                                   Class<?> testClass)
        Description copied from interface: Configurer
        Returns the configuration for the given class.

        This method will be called for each class in the test's class inheritance hierarchy.

        Specified by:
        getConfigFor in interface Configurer<Config>
        Returns:
        a configuration object, or null if the given class has no relevant data for this configuration
      • getConfigFor

        public Config getConfigFor​(@Nonnull
                                   Method method)
        Description copied from interface: Configurer
        Returns the configuration for the given method.
        Specified by:
        getConfigFor in interface Configurer<Config>
        Returns:
        a configuration object, or null if the given method has no relevant data for this configuration