Skip to content

Commit

Permalink
Remove ExperimentalTestApi from CustomFilter.
Browse files Browse the repository at this point in the history
This API forms the basis of espresso-devices's filtering annotations
which have already been API reviewed.

PiperOrigin-RevId: 592326950
  • Loading branch information
brettchabot authored and copybara-androidxtest committed Dec 19, 2023
1 parent dd3de37 commit 43bba1e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions espresso/device/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
**Breaking Changes**

**API Changes**
* Remove ExperimentalTestApi from androidx.test.filter.CustomFilter

**Breaking API Changes**

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ package androidx.test.espresso.device.controller {

package androidx.test.espresso.device.filter {

@java.lang.annotation.Repeatable(RequiresDeviceModes::class) @kotlin.annotation.Retention(kotlin.annotation.AnnotationRetention.RUNTIME) @kotlin.annotation.Target(allowedTargets={kotlin.annotation.AnnotationTarget.CLASS, kotlin.annotation.AnnotationTarget.FUNCTION}) public @interface RequiresDeviceMode {
@androidx.test.filters.CustomFilter(filterClass=RequiresDeviceModeFilter::class) @java.lang.annotation.Repeatable(RequiresDeviceModes::class) @kotlin.annotation.Retention(kotlin.annotation.AnnotationRetention.RUNTIME) @kotlin.annotation.Target(allowedTargets={kotlin.annotation.AnnotationTarget.CLASS, kotlin.annotation.AnnotationTarget.FUNCTION}) public @interface RequiresDeviceMode {
method public abstract androidx.test.espresso.device.controller.DeviceMode mode();
property public abstract androidx.test.espresso.device.controller.DeviceMode mode;
}

@kotlin.annotation.Retention(kotlin.annotation.AnnotationRetention.RUNTIME) @kotlin.annotation.Target(allowedTargets={kotlin.annotation.AnnotationTarget.CLASS, kotlin.annotation.AnnotationTarget.FUNCTION}) public @interface RequiresDisplay {
@androidx.test.filters.CustomFilter(filterClass=RequiresDisplayFilter::class) @kotlin.annotation.Retention(kotlin.annotation.AnnotationRetention.RUNTIME) @kotlin.annotation.Target(allowedTargets={kotlin.annotation.AnnotationTarget.CLASS, kotlin.annotation.AnnotationTarget.FUNCTION}) public @interface RequiresDisplay {
method public abstract androidx.test.espresso.device.sizeclass.HeightSizeClass.Companion.HeightSizeClassEnum heightSizeClass();
method public abstract androidx.test.espresso.device.sizeclass.WidthSizeClass.Companion.WidthSizeClassEnum widthSizeClass();
property public abstract androidx.test.espresso.device.sizeclass.HeightSizeClass.Companion.HeightSizeClassEnum heightSizeClass;
Expand Down
1 change: 1 addition & 0 deletions runner/android_junit_runner/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

**API Changes**
* Mark androidx.test.services.** as RestrictTo LIBRARY_GROUP
* Remove ExperimentalTestApi from CustomFilter

**Breaking API Changes**

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ package androidx.test.filters {
method public boolean shouldRun(org.junit.runner.Description!);
}

@java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME) @java.lang.annotation.Target({java.lang.annotation.ElementType.ANNOTATION_TYPE}) public @interface CustomFilter {
method public abstract Class<? extends androidx.test.filters.AbstractFilter> filterClass();
}

@java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME) @java.lang.annotation.Target({java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.TYPE}) public @interface FlakyTest {
method public abstract int bugId() default -1;
method public abstract String detail() default "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package androidx.test.filters;

import androidx.test.annotation.ExperimentalTestApi;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
Expand All @@ -33,10 +32,7 @@
* @CustomFilter(MyCustomFilterClass::class)
* public @interface MyCustomFilterAnnotation {}
* }</pre>
*
* <p>This API is experimental and subject to change or removal.
*/
@ExperimentalTestApi
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.ANNOTATION_TYPE})
public @interface CustomFilter {
Expand Down

0 comments on commit 43bba1e

Please sign in to comment.