feat: V1.1 - 测试类,注释补充

This commit is contained in:
2026-08-03 14:25:38 +08:00
parent 7cbbfae503
commit 99aae6dc77
12 changed files with 22 additions and 0 deletions

View File

@@ -24,6 +24,9 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* MQ 端到端场景生产侧投递点检测、读侧补强、Schema Diff 与报告渲染联动验证。
*/
class MqScenarioTest { class MqScenarioTest {
@Test @Test

View File

@@ -5,6 +5,7 @@ import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.assertTrue;
/** {@link GlobMatcher} 的 glob 规则单测({@code *} / {@code **} / 字面量)。 */
class GlobMatcherTest { class GlobMatcherTest {
@Test @Test

View File

@@ -11,6 +11,9 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* 验证默认配置加载与业务 YAML 深度合并(业务项优先)。
*/
class ConfigLoaderTest { class ConfigLoaderTest {
@Test @Test

View File

@@ -9,6 +9,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.assertTrue;
/** W06 读侧反序列化类型提示检测单测。 */
class CacheReadHintDetectorTest { class CacheReadHintDetectorTest {
@Test @Test

View File

@@ -10,6 +10,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.assertTrue;
/** MQ-R 消费侧类型提示检测单测RocketMQ Listener / Kafka Listener / parse。 */
class MqReadHintDetectorTest { class MqReadHintDetectorTest {
@Test @Test

View File

@@ -12,6 +12,9 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* RocketMQ / Kafka 生产侧投递点检测单测MQ01~MQ05、MQ-K01~K04 及标量收敛)。
*/
class MqWritePointDetectorTest { class MqWritePointDetectorTest {
@Test @Test

View File

@@ -12,6 +12,9 @@ import java.util.Set;
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Redis 写入点检测单测W01~W05、标量忽略、局部 JSON unwrap、本仓类型门槛
*/
class RedisWritePointDetectorTest { class RedisWritePointDetectorTest {
@Test @Test

View File

@@ -11,6 +11,7 @@ import java.util.stream.Collectors;
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.assertTrue;
/** {@link SchemaDiffer} 包装层 / 字段迁移 / 增删等 Diff 行为单测。 */
class SchemaDifferTest { class SchemaDifferTest {
@Test @Test

View File

@@ -10,6 +10,7 @@ import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertEquals;
/** Redis key 表达式静态模式推断单测常量、format、拼接等。 */
class RedisKeyResolverTest { class RedisKeyResolverTest {
@Test @Test

View File

@@ -15,6 +15,9 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* 企微 Markdown / 控制台报告渲染单测:字段染色、新增写入点整段绿、拆条与转义。
*/
class ReportBuilderTest { class ReportBuilderTest {
@Test @Test

View File

@@ -10,6 +10,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.assertTrue;
/** Java 类型 → 扁平 Schema 提取单测(注解忽略 / 重命名等)。 */
class JavaSchemaExtractorTest { class JavaSchemaExtractorTest {
@Test @Test

View File

@@ -15,6 +15,7 @@ import java.util.stream.Collectors;
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.assertTrue;
/** 序列化骨架 JSON 渲染与受保护路径截断单测。 */
class SkeletonJsonRendererTest { class SkeletonJsonRendererTest {
@Test @Test