Package org.robolectric.pluginapi.config
Interface ConfigurationStrategy
- All Known Implementing Classes:
HierarchicalConfigurationStrategy
public interface ConfigurationStrategy
Strategy for configuring individual tests.
- Since:
- 4.2
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ConfigurationStrategy.Configuration
Heterogeneous typesafe collection of configuration objects managed by theirConfigurer
. -
Method Summary
Modifier and Type Method Description ConfigurationStrategy.Configuration
getConfig(Class<?> testClass, Method method)
Determine the configuration for the given test class and method.
-
Method Details
-
getConfig
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.- 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
-