Interface Configuration<T extends Configuration>

Type Parameters:
T - configuration implementer class.
All Known Implementing Classes:
MockitoConfiguration, PowerMockConfiguration

public interface Configuration<T extends Configuration>
The general interface for all types configurations that could be obtained via GlobalConfiguration.

All user defined configurations are read from the properties file:

org/powermock/extensions/configuration.properties

By default the file is not exist and default values are used.

Since:
1.7.0
  • Method Summary

    Modifier and Type
    Method
    Description
    merge(T configuration)
    Merge values of the configuration with values of configuration.
  • Method Details

    • merge

      T merge(T configuration)
      Merge values of the configuration with values of configuration. Values with the same keys from the configuration overwrite value in the current configuration.
      Parameters:
      configuration - source configurations.
      Returns:
      a new instance of Configuration with merged values.