Module cloud.opencode.base.test


module cloud.opencode.base.test
OpenCode Base Test Module OpenCode 基础测试模块

Provides testing utilities including assertions, mock support, test data generation, and benchmark tools.

提供测试工具,包括断言、Mock支持、测试数据生成和基准测试工具。

Key Features | 主要功能:

  • OpenAssert - Comprehensive assertions (basic, collection, string, exception) - 全面断言
  • OpenMock - Interface mocking with JDK Proxy - 接口 Mock
  • OpenData - Test data generation (string, number, date, Chinese) - 测试数据生成
  • Benchmark - Performance testing with warmup and statistics - 性能测试
  • SoftAssert - Collect multiple assertion failures - 软断言
  • ConcurrentTester - Thread safety testing - 并发测试
  • Wait/Poller - Condition polling - 条件等待
  • TestFixture - Reusable test fixtures - 测试夹具
Since:
JDK 25, opencode-base-test V1.0.0
Author:
Leon Soo