chore(meta): 实体描述取请求 description, 默认中性'设计中心创建'(去硬编码 AI 标记)
DESCRIPTION 行与 resolveDescription 在 Task 3 即就地实现(§B.9-7 收口),本提交补 resolveDescription 纯函数单测。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -71,4 +71,12 @@ class MetaControllerReferenceTest {
|
|||||||
verify(jdbc).update(contains("INSERT INTO SYS_REFERENCE"),
|
verify(jdbc).update(contains("INSERT INTO SYS_REFERENCE"),
|
||||||
eq(refId), eq("target-entity-id"), anyString(), anyString());
|
eq(refId), eq("target-entity-id"), anyString(), anyString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@DisplayName("resolveDescription: 无 description → 中性默认; 有则原样")
|
||||||
|
void resolveDescriptionNeutralDefault() {
|
||||||
|
assertEquals("设计中心创建", MetaController.resolveDescription(java.util.Map.of()));
|
||||||
|
assertEquals("我的订单实体",
|
||||||
|
MetaController.resolveDescription(java.util.Map.of("description", "我的订单实体")));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user