Class HierarchicalConfigurationStrategy

java.lang.Object
org.robolectric.plugins.HierarchicalConfigurationStrategy
All Implemented Interfaces:
ConfigurationStrategy

@AutoService(ConfigurationStrategy.class) @Priority(-2147483648) public class HierarchicalConfigurationStrategy extends Object implements ConfigurationStrategy
Robolectric's default ConfigurationStrategy.
See Also:
  • Constructor Details

    • HierarchicalConfigurationStrategy

      public HierarchicalConfigurationStrategy(Configurer<?>... configurers)
  • Method Details

    • getConfig

      public HierarchicalConfigurationStrategy.ConfigurationImpl getConfig(Class<?> testClass, Method method)
      Description copied from interface: ConfigurationStrategy
      Determine the configuration for the given test class and method.

      Since a method may be run on multiple test subclasses, testClass indicates which test case is currently being evaluated.

      Specified by:
      getConfig in interface ConfigurationStrategy
      Parameters:
      testClass - the test class being evaluated; this might be a subclass of the method's declaring class.
      method - the test method to be evaluated
      Returns:
      the set of configs