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 default
ConfigurationStrategy
.- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Nested classes/interfaces inherited from interface org.robolectric.pluginapi.config.ConfigurationStrategy
ConfigurationStrategy.Configuration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDetermine the configuration for the given test class and method.
-
Constructor Details
-
HierarchicalConfigurationStrategy
-
-
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 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
-