@AutoService(value=ConfigurationStrategy.class) @Priority(value=-2147483648) public class HierarchicalConfigurationStrategy extends Object implements ConfigurationStrategy
Robolectric’s default ConfigurationStrategy
.
Modifier and Type | Class and Description |
---|---|
static class |
HierarchicalConfigurationStrategy.ConfigurationImpl |
ConfigurationStrategy.Configuration
Constructor and Description |
---|
HierarchicalConfigurationStrategy(Configurer<?>... configurers) |
Modifier and Type | Method and Description |
---|---|
HierarchicalConfigurationStrategy.ConfigurationImpl |
getConfig(Class<?> testClass,
Method method)
Determine the configuration for the given test class and method.
|
public HierarchicalConfigurationStrategy(Configurer<?>... configurers)
public HierarchicalConfigurationStrategy.ConfigurationImpl getConfig(Class<?> testClass, Method method)
ConfigurationStrategy
Determine the configuration for the given test class and method.
Since a method may be run on multiple test subclasses, indicates which test case is currently being evaluated.
getConfig
in interface ConfigurationStrategy
testClass
- the test class being evaluated; this might be a subclass of the method’s declaring class.method
- the test method to be evaluated