test(外观专利): 模块支数台账 56→57、support 21→22(3A 拆薄第十四笔)
AppearancePatentDeliveredRearmSupport 落进 service/support 后,SourceScanTest 两格 (整模块支数、support 支数)按设计报红。按既有口径逐条点名更新,不整份放宽: 新件同时进「必须被逐枚点名扫到」清单,避免只把分母数字改大。 整量 mvn -o test 此前只红这两格(5,416 例 / 2 失败 / 19 skipped),改后 40/40 绿。
This commit is contained in:
@@ -318,9 +318,9 @@ class SourceScanTest {
|
||||
List<Path> files = SourceScan.moduleSources("modules/appearancepatent");
|
||||
|
||||
assertThat(files)
|
||||
.as("真实集成:对真仓目录求值。56 支=2 controller+2 client+8 service 根件"
|
||||
.as("真实集成:对真仓目录求值。57 支=2 controller+2 client+8 service 根件"
|
||||
+ "(主件/只读查询/同步/出表作业/缓存/心跳与拉取与重试 SPI)"
|
||||
+ "+21 service/support+22 model(dto7/entity1/vo14)+1 mapper,"
|
||||
+ "+22 service/support+22 model(dto7/entity1/vo14)+1 mapper,"
|
||||
+ "与 find 实测同号"
|
||||
+ "(3A 拆薄第十三笔再落 5 支;失败任务重试再落 1 支 RetrySpi;"
|
||||
+ "v1.3 Phase 1 无侵权同步底座再落 2 支:model/entity/CleanItemEntity+"
|
||||
@@ -331,8 +331,10 @@ class SourceScanTest {
|
||||
+ "2026-11-11「按主管划分」再落 3 支 model/vo:"
|
||||
+ "SupervisorPageVo/SummaryVo/SupervisorVo;"
|
||||
+ "2026-11-11 B95-02 整批失败文案分档再落 1 支 client:"
|
||||
+ "AppearancePatentBrandFailureText)")
|
||||
.hasSize(56);
|
||||
+ "AppearancePatentBrandFailureText;"
|
||||
+ "2026-11-12 3A 拆薄第十四笔再落 1 支 support:"
|
||||
+ "AppearancePatentDeliveredRearmSupport)")
|
||||
.hasSize(57);
|
||||
assertThat(files.stream().map(p -> p.toString().replace('\\', '/')).toList())
|
||||
.as("support 目录里的既有件必须在面里——聚合入口存在的理由就是拆分后的新文件要自动被看到")
|
||||
.anyMatch(rel -> rel.endsWith("service/support/AppearancePatentRowNormalizer.java"));
|
||||
@@ -426,16 +428,16 @@ class SourceScanTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
void recursive_包含service_support下的既有21件() {
|
||||
void recursive_包含service_support下的既有22件() {
|
||||
List<String> support = SourceScan.moduleSources("modules/appearancepatent").stream()
|
||||
.map(p -> p.toString().replace('\\', '/'))
|
||||
.filter(rel -> rel.contains("/service/support/"))
|
||||
.toList();
|
||||
|
||||
assertThat(support)
|
||||
.as("真实集成:对真仓 modules/appearancepatent/service/support 求值,实测 21 支(3A 拆薄把归属谓词、陈旧扫描、结果打包、LLM 批管线、载荷读写、结果行读取、进度视图、分片回传、交付闸门、结果作业、建单解析、载荷合并、提交调度、陈旧收尾、解析分组、任务记录抽成十六枚 support 件,5→21)。"
|
||||
.as("真实集成:对真仓 modules/appearancepatent/service/support 求值,实测 22 支(3A 拆薄把归属谓词、陈旧扫描、结果打包、LLM 批管线、载荷读写、结果行读取、进度视图、分片回传、交付闸门、结果作业、建单解析、载荷合并、提交调度、陈旧收尾、解析分组、任务记录抽成十六枚 support 件,5→21;第十四笔再抽「继续」摘作业与清直链,21→22)。"
|
||||
+ "这一格就是聚合入口存在的理由——拆分出去的新文件必须自动进面")
|
||||
.hasSize(21);
|
||||
.hasSize(22);
|
||||
assertThat(support)
|
||||
.as("3A 拆出去的新件必须被逐枚点名扫到:只把分母数字改大,下一回拆件又只剩「数不对」"
|
||||
+ "一记红,证不了「扫得到」这件事")
|
||||
@@ -454,7 +456,8 @@ class SourceScanTest {
|
||||
.anyMatch(rel -> rel.endsWith("service/support/AppearancePatentLlmSubmissionSupport.java"))
|
||||
.anyMatch(rel -> rel.endsWith("service/support/AppearancePatentStaleTaskFinalizer.java"))
|
||||
.anyMatch(rel -> rel.endsWith("service/support/AppearancePatentGroupingSupport.java"))
|
||||
.anyMatch(rel -> rel.endsWith("service/support/AppearancePatentTaskRecordSupport.java"));
|
||||
.anyMatch(rel -> rel.endsWith("service/support/AppearancePatentTaskRecordSupport.java"))
|
||||
.anyMatch(rel -> rel.endsWith("service/support/AppearancePatentDeliveredRearmSupport.java"));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user