# MediumTest

Summary:[Inherited Methods](https://developer.android.com/reference/android/support/test/filters/MediumTest#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/test/filters/MediumTest#)  

# MediumTest

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

`
public


abstract
@interface
MediumTest
`  
`


implements

`[Annotation](https://developer.android.com/reference/java/lang/annotation/Annotation.html)`


`

|-----------------------------------------|
| android.support.test.filters.MediumTest |

<br />

*** ** * ** ***

Annotation to assign a medium test size qualifier to a test. This annotation can be used at a method or class level.

Test size qualifiers are a great way to structure test code and are used to assign a test to a test suite of similar run time.

Execution time: \<1000ms

Medium tests should be focused on a very limited subset of components or a single component. Resource access to the file system through well defined interfaces like databases, ContentProviders, or Context is permitted. Network access should be restricted, (long-running) blocking operations should be avoided and use mock objects instead.

Note: This class replaces the deprecated Android platform size qualifier[`
android.test.suitebuilder.annotation.MediumTest`](https://developer.android.com/reference/android/test/suitebuilder/annotation/MediumTest)and is the recommended way to annotate tests written with the Android Testing Support Library.

## Summary

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/test/filters/MediumTest#)From interface` `[java.lang.annotation.Annotation](https://developer.android.com/reference/java/lang/annotation/Annotation.html)` ` |---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------| | ` abstract `[Class](https://developer.android.com/reference/java/lang/Class.html)`<? extends `[Annotation](https://developer.android.com/reference/java/lang/annotation/Annotation.html)`>` | ` annotationType() `                                                                       | | ` abstract boolean`                                                                                                                                                                         | ` equals(`[Object](https://developer.android.com/reference/java/lang/Object.html)` arg0) ` | | ` abstract int`                                                                                                                                                                             | ` hashCode() `                                                                             | | ` abstract `[String](https://developer.android.com/reference/java/lang/String.html)                                                                                                         | ` toString() `                                                                             | ||

-

  ## Annotations

  - [FlakyTest](https://developer.android.com/reference/android/support/test/filters/FlakyTest)
  - [LargeTest](https://developer.android.com/reference/android/support/test/filters/LargeTest)
  - [MediumTest](https://developer.android.com/reference/android/support/test/filters/MediumTest)
  - [RequiresDevice](https://developer.android.com/reference/android/support/test/filters/RequiresDevice)
  - [SdkSuppress](https://developer.android.com/reference/android/support/test/filters/SdkSuppress)
  - [SmallTest](https://developer.android.com/reference/android/support/test/filters/SmallTest)
  - [Suppress](https://developer.android.com/reference/android/support/test/filters/Suppress)