Package org.robolectric.annotation
Annotation Type Filter
Indicates that a method declaration is intended to be called before or after the original method
with the same signature on the associated Android class.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDescribes the order in which a filter method should be invoked relative to the original method. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionintThe annotated filter method will be invoked only for the specified SDK or lesser.The filtered method name.intThe annotated filter method will be invoked only for the specified SDK or greater.The order in which the filter should be invoked. -
Field Summary
Fields
-
Field Details
-
DEFAULT_SDK
static final int DEFAULT_SDK- See Also:
-
-
Element Details
-
order
Filter.Order orderThe order in which the filter should be invoked.- Default:
BEFORE
-
minSdk
int minSdkThe annotated filter method will be invoked only for the specified SDK or greater.- Default:
-1
-
maxSdk
int maxSdkThe annotated filter method will be invoked only for the specified SDK or lesser.- Default:
-1
-
methodName
String methodNameThe filtered method name.- Returns:
- The expected filtered method name. If it is empty, the Robolectric will use the method name that is marked by @Filter.
- Default:
""
-