Annotation Interface IntegrationTest


@Target({TYPE,METHOD}) @Retention(RUNTIME) public @interface IntegrationTest
Integration Test 集成测试

Marks a test as an integration test.

标记测试为集成测试。

Features | 主要功能:

  • Integration test categorization annotation - 集成测试分类注解
  • Resource requirement declaration - 资源需求声明

Usage Examples | 使用示例:

@IntegrationTest(requires = {"database", "redis"})
void shouldProcessOrder() {
    // Integration test
}

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
    Required resources 所需资源
    Description of the test 测试描述
  • Element Details

    • value

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

      String[] requires
      Required resources 所需资源
      Returns:
      the required resources | 所需资源
      Default:
      {}