Class ConfigMerger

java.lang.Object
org.robolectric.ConfigMerger

@Deprecated public class ConfigMerger extends Object
Deprecated.
Provide an implementation of javax.inject.Provider<Config>. This class will be removed in Robolectric 4.3.
Computes the effective Robolectric configuration for a given test method.

This class is no longer used directly by Robolectric, but is left for convenience during migration.

See Also:
  • Constructor Details

    • ConfigMerger

      public ConfigMerger()
      Deprecated.
  • Method Details

    • getConfig

      public Config getConfig(Class<?> testClass, Method method, Config globalConfig)
      Deprecated.
      Calculate the Config for the given test.
      Parameters:
      testClass - the class containing the test
      method - the test method
      globalConfig - global configuration values
      Returns:
      the effective configuration
      Since:
      3.2
    • getConfigProperties

      protected Properties getConfigProperties(String packageName)
      Deprecated.
      Return a Properties file for the given package name, or null if none is available.
      Since:
      3.2