summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrett Chabot <brettchabot@google.com>2014-02-20 21:54:19 -0800
committerBrett Chabot <brettchabot@google.com>2014-02-20 21:54:19 -0800
commit653db57573e8789d059ac01bddd5f5e08a6bc623 (patch)
tree6fc955f438e12a8281af34925e28364a7387f098
parentc09465b280b031c95c90d85f0034a02b39c65a92 (diff)
downloadtesting-653db57573e8789d059ac01bddd5f5e08a6bc623.tar.gz
Add missing Retention and Target for FlakyTest annotation.
Missed in last commit Change-Id: I66e7d43c120cc7b24857f7af729142de4181e74b
-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