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>SmallTest</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">SmallTest</h1> 204<p> 205<code class="api-signature"> 206 public 207 208 209 abstract 210 @interface 211 SmallTest 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.SmallTest 233 </td> 234 </tr> 235 236 237</table> 238 239 240 241 242<br><hr> 243 244 245 <p>Annotation to assign a small 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: <200ms 252 <p> 253 Small tests should be run very frequently. Focused on units of code to verify specific logical 254 conditions. These tests should runs in an isolated environment and use mock objects for external 255 dependencies. Resource access (such as file system, network, or databases) are not permitted. 256 Tests that interact with hardware, make binder calls, or that facilitate android instrumentation 257 should not use this annotation. 258 <p> 259 Note: 260 This class replaces the deprecated Android platform size qualifier 261 <code><a href="/">ERROR(/android.test.suitebuilder.annotation.SmallTest)</a></code> and is the recommended way to annotate 262 tests written with the Android Testing Support Library. 263</p> 264 265 266 267 268 269 270 271<h2 class="api-section">Summary</h2> 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 304<!-- ========== METHOD SUMMARY =========== --> 305<table id="inhmethods" class="methods inhtable"> 306<tr><th><h3>Inherited methods</h3></th></tr> 307 308 309<tr class="api apilevel-" > 310<td colspan="2"> 311 312 <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.annotation.Annotation" class="jd-expando-trigger closed" 313 ><img height="34" id="inherited-methods-java.lang.annotation.Annotation-trigger" 314 src="/assets/images/styles/disclosure_down.png" 315 class="jd-expando-trigger-img" /></a>From 316interface 317<code> 318 319 java.lang.annotation.Annotation 320 321</code> 322<div id="inherited-methods-java.lang.annotation.Annotation"> 323 <div id="inherited-methods-java.lang.annotation.Annotation-list" 324 class="jd-inheritedlinks"> 325 </div> 326 <div id="inherited-methods-java.lang.annotation.Annotation-summary" style="display: none;"> 327 <table class="jd-sumtable-expando responsive"> 328 329 330 331 332 <tr class="api apilevel-" > 333 334 335 <td><code> 336 abstract 337 338 339 340 341 Class<? extends Annotation></code> 342 </td> 343 344 <td width="100%"> 345 <code> 346 annotationType() 347 </code> 348 349 </td> 350 </tr> 351 352 353 354 <tr class="api apilevel-" > 355 356 357 <td><code> 358 abstract 359 360 361 362 363 boolean</code> 364 </td> 365 366 <td width="100%"> 367 <code> 368 equals(Object arg0) 369 </code> 370 371 </td> 372 </tr> 373 374 375 376 <tr class="api apilevel-" > 377 378 379 <td><code> 380 abstract 381 382 383 384 385 int</code> 386 </td> 387 388 <td width="100%"> 389 <code> 390 hashCode() 391 </code> 392 393 </td> 394 </tr> 395 396 397 398 <tr class="api apilevel-" > 399 400 401 <td><code> 402 abstract 403 404 405 406 407 String</code> 408 </td> 409 410 <td width="100%"> 411 <code> 412 toString() 413 </code> 414 415 </td> 416 </tr> 417 418 419 420 </table> 421 </div> 422</div> 423</td></tr> 424 425 426</table> 427 428 429 430<!-- XML Attributes --> 431 432 433<!-- Enum Values --> 434 435 436<!-- Constants --> 437 438 439<!-- Fields --> 440 441 442<!-- Public ctors --> 443 444 445 446<!-- ========= CONSTRUCTOR DETAIL ======== --> 447<!-- Protected ctors --> 448 449 450 451<!-- ========= METHOD DETAIL ======== --> 452<!-- Public methdos --> 453 454 455 456<!-- ========= METHOD DETAIL ======== --> 457 458 459 460<!-- ========= END OF CLASS DATA ========= --> 461 462</div><!-- end jd-content --> 463 464 465 466<div class="data-reference-resources-wrapper"> 467 468 <ul data-reference-resources> 469 470 <li><h2>Annotations</h2> 471 <ul> 472 <li class="api apilevel-"><a href="/reference/android/support/test/filters/FlakyTest.html">FlakyTest</a></li> 473 <li class="api apilevel-"><a href="/reference/android/support/test/filters/LargeTest.html">LargeTest</a></li> 474 <li class="api apilevel-"><a href="/reference/android/support/test/filters/MediumTest.html">MediumTest</a></li> 475 <li class="api apilevel-"><a href="/reference/android/support/test/filters/RequiresDevice.html">RequiresDevice</a></li> 476 <li class="api apilevel-"><a href="/reference/android/support/test/filters/SdkSuppress.html">SdkSuppress</a></li> 477 <li class="selected api apilevel-"><a href="/reference/android/support/test/filters/SmallTest.html">SmallTest</a></li> 478 <li class="api apilevel-"><a href="/reference/android/support/test/filters/Suppress.html">Suppress</a></li> 479 </ul> 480 </li> 481 482 483 484 485 486 </ul> 487 488</div> 489 490 491 492</body> 493</html> 494