summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--support/src/android/support/test/filters/FlakyTest.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/support/src/android/support/test/filters/FlakyTest.java b/support/src/android/support/test/filters/FlakyTest.java
index d07c745..dcccb26 100644
--- a/support/src/android/support/test/filters/FlakyTest.java
+++ b/support/src/android/support/test/filters/FlakyTest.java
@@ -15,12 +15,19 @@
*/
package android.support.test.filters;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
/**
* Designates a test as being flaky (non-deterministic).
* <p/>
- * Can then be used to filter tests as appropriate using -e annotation or -e notAnnotation as
+ * Can then be used to filter tests on execution using -e annotation or -e notAnnotation as
* desired.
*/
+@Retention(RetentionPolicy.RUNTIME)
+@Target({ElementType.METHOD, ElementType.TYPE})
public @interface FlakyTest {
/**
* An optional bug number associated with the test. -1 Means that no bug number
@@ -36,4 +43,4 @@ public @interface FlakyTest {
* @return String
*/
String detail() default "";
-}
+} \ No newline at end of file