1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119<!DOCTYPE html> 120<html devsite> 121<head> 122 123 124 <meta name="top_category" value="develop" /> 125 126 <meta name="subcategory" value="reference" /> 127 128 129 <meta name="book_path" value="/reference/android/support/test/_book.yaml" /> 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145<title>MediumTest</title> 146 147 148</head> 149 150<body class="gc-documentation develop reference api apilevel-"> 151<div id="doc-api-level" class="" style="display:none"></div> 152 153 154 155 156<div id="naMessage"></div> 157 158<div id="api-info-block"> 159<div class="api-level"> 160 161 162 163 164</div> 165 166 167 168 169 170 171 172 173 174 175 176<div class="sum-details-links"> 177 178Summary: 179 180 181 182 183 184 185 186 187 188 189 190 191 192 <a href="#inhmethods">Inherited Methods</a> 193 194| <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a> 195 196</div><!-- end sum-details-links --> 197</div><!-- end api-info-block --> 198 199<div class="api apilevel-" id="jd-content"> 200 201<!-- ======== START OF CLASS DATA ======== --> 202 203<h1 class="api-title">MediumTest</h1> 204<p> 205<code class="api-signature"> 206 public 207 208 209 abstract 210 @interface 211 MediumTest 212</code> 213<br> 214 215 216<code class="api-signature"> 217 218 219 implements 220 221 Annotation 222 223 224 225</code> 226 227</p><table class="jd-inheritance-table"> 228 229 230 <tr> 231 232 <td colspan="1" class="jd-inheritance-class-cell">android.support.test.filters.MediumTest 233 </td> 234 </tr> 235 236 237</table> 238 239 240 241 242<br><hr> 243 244 245 <p>Annotation to assign a medium test size qualifier to a test. This annotation can be used at a 246 method or class level. 247 <p> 248 Test size qualifiers are a great way to structure test code and are used to assign a test to a 249 test suite of similar run time. 250 <p> 251 Execution time: <1000ms 252 <p> 253 Medium tests should be focused on a very limited subset of components or a single component. 254 Resource access to the file system through well defined interfaces like databases, 255 ContentProviders, or Context is permitted. Network access should be restricted, (long-running) 256 blocking operations should be avoided and use mock objects instead. 257 <p> 258 Note: 259 This class replaces the deprecated Android platform size qualifier 260 <code><a href="/">ERROR(/android.test.suitebuilder.annotation.MediumTest)</a></code> and is the recommended way to annotate 261 tests written with the Android Testing Support Library. 262</p> 263 264 265 266 267 268 269 270<h2 class="api-section">Summary</h2> 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303<!-- ========== METHOD SUMMARY =========== --> 304<table id="inhmethods" class="methods inhtable"> 305<tr><th><h3>Inherited methods</h3></th></tr> 306 307 308<tr class="api apilevel-" > 309<td colspan="2"> 310 311 <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.annotation.Annotation" class="jd-expando-trigger closed" 312 ><img height="34" id="inherited-methods-java.lang.annotation.Annotation-trigger" 313 src="/assets/images/styles/disclosure_down.png" 314 class="jd-expando-trigger-img" /></a>From 315interface 316<code> 317 318 java.lang.annotation.Annotation 319 320</code> 321<div id="inherited-methods-java.lang.annotation.Annotation"> 322 <div id="inherited-methods-java.lang.annotation.Annotation-list" 323 class="jd-inheritedlinks"> 324 </div> 325 <div id="inherited-methods-java.lang.annotation.Annotation-summary" style="display: none;"> 326 <table class="jd-sumtable-expando responsive"> 327 328 329 330 331 <tr class="api apilevel-" > 332 333 334 <td><code> 335 abstract 336 337 338 339 340 Class<? extends Annotation></code> 341 </td> 342 343 <td width="100%"> 344 <code> 345 annotationType() 346 </code> 347 348 </td> 349 </tr> 350 351 352 353 <tr class="api apilevel-" > 354 355 356 <td><code> 357 abstract 358 359 360 361 362 boolean</code> 363 </td> 364 365 <td width="100%"> 366 <code> 367 equals(Object arg0) 368 </code> 369 370 </td> 371 </tr> 372 373 374 375 <tr class="api apilevel-" > 376 377 378 <td><code> 379 abstract 380 381 382 383 384 int</code> 385 </td> 386 387 <td width="100%"> 388 <code> 389 hashCode() 390 </code> 391 392 </td> 393 </tr> 394 395 396 397 <tr class="api apilevel-" > 398 399 400 <td><code> 401 abstract 402 403 404 405 406 String</code> 407 </td> 408 409 <td width="100%"> 410 <code> 411 toString() 412 </code> 413 414 </td> 415 </tr> 416 417 418 419 </table> 420 </div> 421</div> 422</td></tr> 423 424 425</table> 426 427 428 429<!-- XML Attributes --> 430 431 432<!-- Enum Values --> 433 434 435<!-- Constants --> 436 437 438<!-- Fields --> 439 440 441<!-- Public ctors --> 442 443 444 445<!-- ========= CONSTRUCTOR DETAIL ======== --> 446<!-- Protected ctors --> 447 448 449 450<!-- ========= METHOD DETAIL ======== --> 451<!-- Public methdos --> 452 453 454 455<!-- ========= METHOD DETAIL ======== --> 456 457 458 459<!-- ========= END OF CLASS DATA ========= --> 460 461</div><!-- end jd-content --> 462 463 464 465<div class="data-reference-resources-wrapper"> 466 467 <ul data-reference-resources> 468 469 <li><h2>Annotations</h2> 470 <ul> 471 <li class="api apilevel-"><a href="/reference/android/support/test/filters/FlakyTest.html">FlakyTest</a></li> 472 <li class="api apilevel-"><a href="/reference/android/support/test/filters/LargeTest.html">LargeTest</a></li> 473 <li class="selected api apilevel-"><a href="/reference/android/support/test/filters/MediumTest.html">MediumTest</a></li> 474 <li class="api apilevel-"><a href="/reference/android/support/test/filters/RequiresDevice.html">RequiresDevice</a></li> 475 <li class="api apilevel-"><a href="/reference/android/support/test/filters/SdkSuppress.html">SdkSuppress</a></li> 476 <li class="api apilevel-"><a href="/reference/android/support/test/filters/SmallTest.html">SmallTest</a></li> 477 <li class="api apilevel-"><a href="/reference/android/support/test/filters/Suppress.html">Suppress</a></li> 478 </ul> 479 </li> 480 481 482 483 484 485 </ul> 486 487</div> 488 489 490 491</body> 492</html> 493