# common-utils **Repository Path**: myflx/common-utils ## Basic Information - **Project Name**: common-utils - **Description**: 常用工具类 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-10-28 - **Last Updated**: 2025-11-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # common-utils Java工具库,提供核心工具类和测试支持。 ## 项目结构 ``` ├── .gitignore ├── LICENSE ├── README.md ├── common-core/ # 核心工具模块 ├── common-test/ # 测试工具模块 └── pom.xml ``` ## Prerequisites - JDK 1.8+ - Maven 3.6+ ## Quick Start ### 1. Build the project ```bash mvn clean install ``` ### 2. Run tests ```bash mvn test ``` ## 模块说明 ### common-core 核心工具模块,提供基础功能支持和通用数据结构。 ### common-test 测试工具模块,提供测试基类、API测试工具和测试数据构建功能。 ## 功能特点 - 基于JUnit 5、Mockito的测试框架集成 - 提供通用的测试基类和工具方法 - 简化的MockMvc封装用于REST API测试 - 响应体解析和断言工具 - 灵活的测试数据构建器,支持链式调用 ## Usage To use the testing framework in your project: 1. Add dependency on common-test module 2. Extend BaseTest for your test classes 3. Use DataBuilder to create test data 4. Utilize RestApiTestUtils for API testing ## License MIT