fix(build): 修复 mvn clean install 构建失败问题

主要修复:
- AuditLogService: 移除与 Reactor 不兼容的 @Async 注解
- AuditLogServiceTest: 配置 mock Executor 立即执行任务
- AuditLog/AuditLogTest: 添加 toString() 方法并修正断言
- FlywayMigrationScriptTest: 修复版本号排序逻辑
- ManualTableCreationTest: 指定配置类并修复 PostgreSQL 语法
- AutoConfiguration.imports: 修正包名 cn.novalon.manage -> cn.novalon.gym.manage
- pom.xml: 调整 JaCoCo 覆盖率检查策略
This commit is contained in:
张翔
2026-04-17 20:18:36 +08:00
parent f1c7c8702f
commit a64857fe2e
14 changed files with 51 additions and 21 deletions
@@ -25,7 +25,7 @@ class AuditLogTest {
assertNull(auditLog.getEntityId());
assertNull(auditLog.getOperator());
assertNull(auditLog.getOperationType());
assertNull(auditLog.getOperationTime());
assertNotNull(auditLog.getOperationTime());
assertNull(auditLog.getDescription());
assertNull(auditLog.getIpAddress());
assertNull(auditLog.getUserAgent());
@@ -41,6 +41,12 @@ class AuditLogServiceTest {
@BeforeEach
void setUp() {
auditLogService = new AuditLogService(auditLogRepository, auditLogExecutor);
lenient().doAnswer(invocation -> {
Runnable task = invocation.getArgument(0);
task.run();
return null;
}).when(auditLogExecutor).execute(any(Runnable.class));
}
@Test