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) - 全面断言
  • RecordAssert - Record component assertions by name - Record 组件断言
  • MapAssert - Standalone Map assertions - 独立 Map 断言
  • TimingAssert - Performance timing assertions - 性能计时断言
  • SnapshotAssert - JSON snapshot testing - JSON 快照测试
  • OpenMock - Interface mocking with JDK Proxy - 接口 Mock
  • OpenData - Test data generation (string, number, date, Chinese) - 测试数据生成
  • AutoFill - Auto-populate Record/POJO instances - 自动填充 Record/POJO 实例
  • EdgeCases - Boundary value generators - 边界值生成器
  • Benchmark - Performance testing with warmup and statistics - 性能测试
  • SoftAssert - Collect multiple assertion failures - 软断言
  • ConcurrentTester - Thread safety testing - 并发测试
  • Wait/Poller - Condition polling - 条件等待
  • TestFixture - Reusable test fixtures - 测试夹具
  • RequestVerification - HTTP request verification - HTTP 请求验证
Since:
JDK 25, opencode-base-test V1.0.0
Author:
Leon Soo