鱼跃雾化器怎么用图解:@SmallTest @MediumTest and @LargeTest - Android 开发晋级交流 - e司 - 移动 - 云计算 - 开发中心

来源:百度文库 编辑:九乡新闻网 时间:2024/05/01 11:28:08

@SmallTest  @MediumTest and @LargeTest

 

This blog post explains it best. Basically, it is the following:

  1. Small: this test doesn't interact with any file system or network.
  2. Medium: Accesses file systems on box which is running tests.
  3. Large: Accesses external file systems, networks, etc.
See this page (search for "@SmallTest") on how to specify which tests get run.

Feature Small Medium Large Network access No localhost only Yes Database No Yes Yes File system access No Yes Yes Use external systems No Discouraged Yes Multiple threads No Yes Yes Sleep statements No Yes Yes System properties No Yes Yes Time limit (seconds) 60 300 900+