Annotation Interface SlowTest


@Target({TYPE,METHOD}) @Retention(RUNTIME) public @interface SlowTest
Slow Test 慢速测试

Marks a test as slow (typically > 1s).

标记测试为慢速测试(通常大于1秒)。

Features | 主要功能:

  • Slow test categorization annotation - 慢测试分类注解
  • Test filtering support - 测试过滤支持

Usage Examples | 使用示例:

@SlowTest
void shouldProcessLargeDataset() {
    // Slow test implementation
}

Security | 安全性:

  • Thread-safe: Yes (immutable) - 线程安全: 是(不可变)
Since:
JDK 25, opencode-base-test V1.0.0
Author:
Leon Soo www.LeonSoo.com
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    long
    Expected duration in milliseconds 期望时长(毫秒)
    Description of the test 测试描述
  • Element Details

    • value

      String value
      Description of the test 测试描述
      Returns:
      the description | 描述
      Default:
      ""
    • expectedMillis

      long expectedMillis
      Expected duration in milliseconds 期望时长(毫秒)
      Returns:
      the expected duration | 期望时长
      Default:
      1000L