Package org.robolectric.plugins
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 defaultConfigurationStrategy
.- See Also:
- Configuring Robolectric.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HierarchicalConfigurationStrategy.ConfigurationImpl
-
Nested classes/interfaces inherited from interface org.robolectric.pluginapi.config.ConfigurationStrategy
ConfigurationStrategy.Configuration
-
-
Constructor Summary
Constructors Constructor Description HierarchicalConfigurationStrategy(Configurer<?>... configurers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HierarchicalConfigurationStrategy.ConfigurationImpl
getConfig(Class<?> testClass, Method method)
Determine the configuration for the given test class and method.
-
-
-
Constructor Detail
-
HierarchicalConfigurationStrategy
public HierarchicalConfigurationStrategy(Configurer<?>... configurers)
-
-
Method Detail
-
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, {@param testClass} indicates which test case is currently being evaluated.- Specified by:
getConfig
in interfaceConfigurationStrategy
- 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
-
-