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:
+1
-1
@@ -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());
|
||||
|
||||
+6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user