Просмотр исходного кода

test(R247): 台账刷新补遗(Java后端测试528文件/用例4528,跨源用例5874) + 纳管3个历史轮次测试资产(GrowthPublicEndpointMapping死配置守卫B-206-2、JwtInterceptorGrowthPolicy、AdminFamilyOverviewController,均未跟踪遗漏)

E2E Test Bot 4 дней назад
Родитель
Сommit
1cb68ac747

+ 168 - 0
cfc-backend/src/test/java/com/etotem/cfc/config/GrowthPublicEndpointMappingTest.java

@@ -0,0 +1,168 @@
+package com.etotem.cfc.config;
+
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
+import org.junit.jupiter.api.DisplayName;
+import org.junit.jupiter.api.Test;
+import org.springframework.core.io.Resource;
+import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+
+import java.lang.reflect.Method;
+import java.util.LinkedHashSet;
+import java.util.Set;
+
+/**
+ * 成长板块「公开白名单端点必须真实存在」(死配置守卫)。
+ *
+ * <p>背景:2026-11-12 fix(auth) 1d8bd5267 将 {@code /api/growth/**} 收窄为 4 个精确公开端点。
+ * 若白名单里的路径与实际 {@code @PostMapping} 不一致(拼写/前缀拆分错误/控制器被删),
+ * 该端点会变成"看似公开实则 404"的死配置——鉴权语义被破坏且无任何用例报警。
+ *
+ * <p><b>R206 装置重构(B-206-2)</b>:原实现用 {@code @SpringBootTest} 注入
+ * {@code RequestMappingHandlerMapping} 再 {@code getHandler(new MockHttpServletRequest(...))},
+ * 存在两个缺陷:
+ * <ol>
+ *   <li><b>契约失效</b>:Spring Boot 2.7 要求 request 上存在已解析的
+ *       {@code ServletRequestPathUtils.PATH} 属性,未设置即抛
+ *       {@code IllegalArgumentException: Expected parsed RequestPath...} → 5 例稳定 ERROR,
+ *       断言从未真正触达映射查找(假失败)。</li>
+ *   <li><b>成本畸高</b>:全上下文启动实测 <b>370.5s</b> 只为 5 条字符串比对,
+ *       单类独占全量套件约 12% 的墙钟时间。</li>
+ * </ol>
+ * 改为纯反射扫描 {@code controller} 包下 {@code @RequestMapping} + {@code @PostMapping}
+ * 的组合路径,不启动任何 Spring 上下文(毫秒级),语义不变:路径不存在即失败。
+ *
+ * <p>只做映射声明比对,<b>不执行</b> controller,因此不会触发批量 AI 分类、外部同步等写副作用。
+ */
+class GrowthPublicEndpointMappingTest {
+
+    private static final String[] PUBLIC_GROWTH_ENDPOINTS = {
+            "/api/growth/recommendations",
+            "/api/growth/articles/ai-classify",
+            "/api/growth/products/ai-classify",
+            "/api/growth/external/sync",
+    };
+
+    private static final String[] PRIVATE_GROWTH_ENDPOINTS = {
+            "/api/growth/record/list",
+            "/api/growth/plan/list",
+    };
+
+    /** 扫出 controller 包下所有类级 @RequestMapping + 方法级 @PostMapping/@GetMapping 的组合路径。 */
+    private static Set<String> declaredMappings() throws Exception {
+        Set<String> out = new LinkedHashSet<String>();
+        PathMatchingResourcePatternResolver resolver = new PathMatchingResourcePatternResolver();
+        Resource[] resources = resolver.getResources("classpath*:com/etotem/cfc/controller/**/*.class");
+        for (Resource r : resources) {
+            String url = r.getURL().toString();
+            if (url.indexOf("/controller/") < 0) {
+                continue;
+            }
+            String rel = url.substring(url.indexOf("com/etotem/cfc/controller/"));
+            String cls = rel.replace('/', '.').replace(".class", "");
+            Class<?> c;
+            try {
+                c = Class.forName(cls, false, GrowthPublicEndpointMappingTest.class.getClassLoader());
+            } catch (Throwable t) {
+                continue; // 内部类/无法加载的类跳过
+            }
+            String prefix = "";
+            RequestMapping cm = c.getAnnotation(RequestMapping.class);
+            if (cm != null) {
+                String[] v = cm.value().length > 0 ? cm.value() : cm.path();
+                if (v.length > 0) {
+                    prefix = v[0];
+                }
+            }
+            for (Method m : c.getDeclaredMethods()) {
+                for (String p : pathsOf(m)) {
+                    out.add(prefix + p);
+                }
+            }
+        }
+        return out;
+    }
+
+    private static Set<String> pathsOf(Method m) {
+        Set<String> s = new LinkedHashSet<String>();
+        PostMapping post = m.getAnnotation(PostMapping.class);
+        if (post != null) {
+            String[] v = post.value().length > 0 ? post.value() : post.path();
+            for (String x : v) {
+                s.add(x);
+            }
+        }
+        GetMapping get = m.getAnnotation(GetMapping.class);
+        if (get != null) {
+            String[] v = get.value().length > 0 ? get.value() : get.path();
+            for (String x : v) {
+                s.add(x);
+            }
+        }
+        RequestMapping rm = m.getAnnotation(RequestMapping.class);
+        if (rm != null) {
+            String[] v = rm.value().length > 0 ? rm.value() : rm.path();
+            boolean postMapped = false;
+            for (RequestMethod method : rm.method()) {
+                if (method == RequestMethod.POST) {
+                    postMapped = true;
+                }
+            }
+            if (v.length > 0 && (rm.method().length == 0 || postMapped)) {
+                for (String x : v) {
+                    s.add(x);
+                }
+            }
+        }
+        return s;
+    }
+
+    private void assertMapped(Set<String> declared, String path) {
+        boolean hit = declared.contains(path);
+        assertTrue(hit, "PUBLIC_PATHS 声明的公开端点 " + path
+                + " 在控制器映射中不存在(死配置):匿名调用只会得到 404,鉴权白名单形同虚设");
+    }
+
+    @Test
+    @DisplayName("TC-GA-M01 公开端点 /api/growth/recommendations 必须映射到真实控制器")
+    void recommendations必须可解析() throws Exception {
+        Set<String> d = declaredMappings();
+        assertNotNull(d);
+        assertMapped(d, "/api/growth/recommendations");
+    }
+
+    @Test
+    @DisplayName("TC-GA-M02 公开端点 /api/growth/articles/ai-classify 必须映射到真实控制器")
+    void articlesAiClassify必须可解析() throws Exception {
+        assertMapped(declaredMappings(), "/api/growth/articles/ai-classify");
+    }
+
+    @Test
+    @DisplayName("TC-GA-M03 公开端点 /api/growth/products/ai-classify 必须映射到真实控制器")
+    void productsAiClassify必须可解析() throws Exception {
+        assertMapped(declaredMappings(), "/api/growth/products/ai-classify");
+    }
+
+    @Test
+    @DisplayName("TC-GA-M04 公开端点 /api/growth/external/sync 必须映射到真实控制器")
+    void externalSync必须可解析() throws Exception {
+        assertMapped(declaredMappings(), "/api/growth/external/sync");
+    }
+
+    @Test
+    @DisplayName("TC-GA-M05 私有端点 /api/growth/record/list 与 /plan/list 必须映射到真实控制器")
+    void 私有端点必须可解析() throws Exception {
+        Set<String> d = declaredMappings();
+        for (String p : PRIVATE_GROWTH_ENDPOINTS) {
+            assertMapped(d, p);
+        }
+        for (String p : PUBLIC_GROWTH_ENDPOINTS) {
+            assertMapped(d, p);
+        }
+    }
+}

+ 122 - 0
cfc-backend/src/test/java/com/etotem/cfc/config/JwtInterceptorGrowthPolicyTest.java

@@ -0,0 +1,122 @@
+package com.etotem.cfc.config;
+
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
+import java.lang.reflect.Field;
+import java.util.Arrays;
+import java.util.List;
+
+import org.junit.jupiter.api.DisplayName;
+import org.junit.jupiter.api.Test;
+
+/**
+ * 成长板块鉴权策略不变量(回归守卫):2026-11-12 fix(auth) 1d8bd5267 把
+ * {@code /api/growth/**} 从 {@code JwtInterceptor.PUBLIC_PATHS} 收窄为 4 个精确公开子端点,
+ * 并在 {@code LOGIN_REQUIRED_PATHS} 补 {@code /api/growth/record/}、{@code /api/growth/plan/}。
+ *
+ * <p>本次收窄修正了「record/plan 匿名直通 → userId 永不注入 → 500」的缺陷,
+ * 但同时引入两个新的回归风险,此前无任何用例守卫:
+ * <ol>
+ *   <li><b>过拦</b>:公开子端点(recommendations / ai-classify / external-sync)若被误删出
+ *       白名单,小程序成长页匿名访问会整体 401,而既有 {@code GrowthAuthContractTest}
+ *       只断言 record/plan 应 401,抓不到这个方向;</li>
+ *   <li><b>通配符回潮</b>:任何人把 {@code /api/growth/**} 加回 PUBLIC_PATHS,原 500 缺陷即复发。</li>
+ * </ol>
+ *
+ * <p>本用例只读取常量(反射),不启动 Spring 上下文、不触发 controller、无数据库与网络副作用,
+ * 可在任意环境确定性执行。
+ */
+class JwtInterceptorGrowthPolicyTest {
+
+    private static List<String> pathsOf(String fieldName) throws Exception {
+        Field f = JwtInterceptor.class.getDeclaredField(fieldName);
+        f.setAccessible(true);
+        String[] arr = (String[]) f.get(null);
+        return Arrays.asList(arr);
+    }
+
+    private static List<String> publicPaths() throws Exception {
+        return pathsOf("PUBLIC_PATHS");
+    }
+
+    private static List<String> loginRequiredPaths() throws Exception {
+        return pathsOf("LOGIN_REQUIRED_PATHS");
+    }
+
+    @Test
+    @DisplayName("TC-GA-P01 PUBLIC_PATHS 不得再出现 /api/growth/** 通配符(原 500 缺陷复发守卫)")
+    void publicPaths_不得再含growth通配符() throws Exception {
+        List<String> pub = publicPaths();
+        assertFalse(pub.contains("/api/growth/**"),
+                "PUBLIC_PATHS 重新包含 /api/growth/** 会让 record/plan 匿名放行,"
+                        + "userId 永不注入导致 500 缺陷复发");
+        assertFalse(pub.contains("/api/growth/*"),
+                "PUBLIC_PATHS 不得包含 /api/growth/* 单层通配符");
+        for (String p : pub) {
+            if (p != null && p.startsWith("/api/growth/")) {
+                assertFalse(p.contains("*"),
+                        "PUBLIC_PATHS 中 /api/growth/ 前缀项必须为精确端点,实际为: " + p);
+            }
+        }
+    }
+
+    @Test
+    @DisplayName("TC-GA-P02 成长 4 个公开子端点必须保留在 PUBLIC_PATHS(过拦守卫)")
+    void publicPaths_应保留成长公开子端点() throws Exception {
+        List<String> pub = publicPaths();
+        String[] expected = {
+                "/api/growth/recommendations",
+                "/api/growth/articles/ai-classify",
+                "/api/growth/products/ai-classify",
+                "/api/growth/external/sync",
+        };
+        for (String p : expected) {
+            assertTrue(pub.contains(p),
+                    "公开子端点 " + p + " 已从 PUBLIC_PATHS 移除,小程序匿名访问将被 401 拦截");
+        }
+    }
+
+    @Test
+    @DisplayName("TC-GA-P03 LOGIN_REQUIRED_PATHS 必须覆盖成长记录(record/)")
+    void loginRequiredPaths_应覆盖成长记录() throws Exception {
+        assertTrue(loginRequiredPaths().contains("/api/growth/record/"),
+                "LOGIN_REQUIRED_PATHS 缺少 /api/growth/record/,成员私有成长记录会退回匿名放行");
+    }
+
+    @Test
+    @DisplayName("TC-GA-P04 LOGIN_REQUIRED_PATHS 必须覆盖成长方案(plan/)")
+    void loginRequiredPaths_应覆盖成长方案() throws Exception {
+        assertTrue(loginRequiredPaths().contains("/api/growth/plan/"),
+                "LOGIN_REQUIRED_PATHS 缺少 /api/growth/plan/,成员私有成长方案会退回匿名放行");
+    }
+
+    @Test
+    @DisplayName("TC-GA-P05 公开子端点与登录必需清单不得重叠(拦截顺序为公开优先,重叠即静默放行)")
+    void 成长公开子端点_不应同时出现在登录必需清单() throws Exception {
+        List<String> pub = publicPaths();
+        List<String> required = loginRequiredPaths();
+        String[] publicGrowth = {
+                "/api/growth/recommendations",
+                "/api/growth/articles/ai-classify",
+                "/api/growth/products/ai-classify",
+                "/api/growth/external/sync",
+        };
+        for (String p : publicGrowth) {
+            assertTrue(pub.contains(p), "前置条件不成立:" + p + " 不在 PUBLIC_PATHS");
+        }
+        // 拦截器先判公开、后判登录必需:同一路径同时出现在两处时"公开"胜出,
+        // 因此公开子端点绝不能以相等或前缀形式命中登录必需项,否则鉴权语义会静默漂移。
+        for (String requiredPath : required) {
+            if (requiredPath == null || !requiredPath.startsWith("/api/growth/")) {
+                continue;
+            }
+            for (String p : publicGrowth) {
+                boolean overlap = p.equals(requiredPath) || p.startsWith(requiredPath);
+                assertFalse(overlap,
+                        "公开子端点 " + p + " 被登录必需前缀 " + requiredPath + " 覆盖,"
+                                + "因公开判定优先,该端点将被静默匿名放行");
+            }
+        }
+    }
+}

+ 93 - 0
cfc-backend/src/test/java/com/etotem/cfc/controller/admin/AdminFamilyOverviewControllerTest.java

@@ -0,0 +1,93 @@
+package com.etotem.cfc.controller.admin;
+
+import com.etotem.cfc.dto.FamilyOverviewDTO;
+import com.etotem.cfc.service.FamilyAdminOverviewService;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.DisplayName;
+import org.junit.jupiter.api.Test;
+import org.mockito.Mock;
+import org.mockito.MockitoAnnotations;
+import org.springframework.http.MediaType;
+import org.springframework.test.util.ReflectionTestUtils;
+import org.springframework.test.web.servlet.MockMvc;
+import org.springframework.test.web.servlet.setup.MockMvcBuilders;
+
+import static org.mockito.ArgumentMatchers.anyLong;
+import static org.mockito.Mockito.never;
+import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.when;
+import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;
+import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
+import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
+
+/**
+ * 契约单测:家庭运营工作台后端接口(需求 FAMILY-WB-2026-11-13-V1 §S3-1)。
+ * 仅校验 {@link AdminFamilyOverviewController} 的路由 / 权限门 / 委派,不依赖数据库
+ * (standalone MockMvc + mock service,可在无 DB 的 review 档离线运行)。
+ *
+ * <p><b>R206 装置对齐(B-206-3)</b>:原用例把 {@code cfService(CfBalanceService)} /
+ * {@code messageService(TeacherMessageService)} 注入控制器,并断言
+ * {@code /families/{id}/cf-summary}、{@code /families/{id}/messages} 两个端点。
+ * 实测控制器已重构为单一依赖 {@code service(FamilyAdminOverviewService)},端点只剩
+ * {@code /families/{id}/overview} 与 {@code /families/{id}/tasks} ——
+ * 原 3 例全部 {@code IllegalArgumentException: Could not find field 'cfService'},
+ * 即「家庭运营工作台契约」自合入起<b>从未真正执行过</b>(假覆盖)。
+ * 本版按当前控制器契约重写,并把「越权不委派」作为断言重点。
+ */
+public class AdminFamilyOverviewControllerTest {
+
+    @Mock
+    private FamilyAdminOverviewService service;
+
+    private MockMvc mockMvc;
+
+    @BeforeEach
+    public void setUp() {
+        MockitoAnnotations.openMocks(this);
+        AdminFamilyOverviewController controller = new AdminFamilyOverviewController();
+        ReflectionTestUtils.setField(controller, "service", service);
+        mockMvc = MockMvcBuilders.standaloneSetup(controller).build();
+    }
+
+    @Test
+    @DisplayName("TC-FW-B01 admin 调用 /overview 委派 buildOverview 并返回 code=200")
+    public void overview_adminRole_delegatesToService() throws Exception {
+        FamilyOverviewDTO dto = new FamilyOverviewDTO();
+        when(service.buildOverview(12L)).thenReturn(dto);
+
+        mockMvc.perform(post("/api/admin/families/12/overview")
+                        .requestAttr("role", "admin")
+                        .contentType(MediaType.APPLICATION_JSON)
+                        .content("{}"))
+                .andExpect(status().isOk())
+                .andExpect(jsonPath("$.code").value(200));
+
+        verify(service).buildOverview(12L);
+    }
+
+    @Test
+    @DisplayName("TC-FW-B02 非 admin 调用 /overview 返回「无权限」且不委派(防越权读单家庭数据)")
+    public void overview_nonAdminRole_rejected() throws Exception {
+        mockMvc.perform(post("/api/admin/families/12/overview")
+                        .requestAttr("role", "teacher")
+                        .contentType(MediaType.APPLICATION_JSON)
+                        .content("{}"))
+                .andExpect(status().isOk())
+                .andExpect(jsonPath("$.message").value("无权限"));
+
+        verify(service, never()).buildOverview(anyLong());
+    }
+
+    @Test
+    @DisplayName("TC-FW-B03 非 admin 调用 /tasks 返回「无权限」且不委派")
+    public void tasks_nonAdminRole_rejected() throws Exception {
+        mockMvc.perform(post("/api/admin/families/12/tasks")
+                        .requestAttr("role", "parent")
+                        .contentType(MediaType.APPLICATION_JSON)
+                        .content("{\"page\":1,\"size\":10}"))
+                .andExpect(status().isOk())
+                .andExpect(jsonPath("$.message").value("无权限"));
+
+        verify(service, never()).pageTasks(anyLong(), anyLong(), anyLong());
+    }
+}

+ 8 - 3
docs/tdd/test/automation-status.md

@@ -23,8 +23,8 @@
 | 用户场景(md) | 11 | 0 | 0 | 11 | 11 | 0 | 0 | 0 | 0 |
 | Playwright(e2e/integration) | 96 | 571 | 96 | 0 | 86 | 0 | 7 | 3 | 0 |
 | Python(pytest) | 11 | 48 | 11 | 0 | 11 | 0 | 0 | 0 | 0 |
-| Java后端测试 | 523 | 4491 | 523 | 0 | 506 | 0 | 15 | 2 | 0 |
-| **合计** | — | **5837** | **693** | **675** | 1089 | 219 | 33 | 5 | 22 |
+| Java后端测试 | 528 | 4528 | 528 | 0 | 511 | 0 | 15 | 2 | 0 |
+| **合计** | — | **5874** | **698** | **675** | 1094 | 219 | 33 | 5 | 22 |
 
 ## 二、结构化测试用例自动化状态(`tests/test-cases/*.md`)
 
@@ -1132,8 +1132,10 @@
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminArticleManageContractTest.java` | 24 | 已自动化(@Test) | 未跟踪 | AdminArticleManageContract |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminAuditLogContractTest.java` | 10 | 已自动化(@Test) | 未跟踪 | AdminAuditLogContract |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminBadgeManageContractTest.java` | 11 | 已自动化(@Test) | 未跟踪 | AdminBadgeManageContract |
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminChildrenFamilyFilterContractTest.java` | 2 | 已自动化(@Test) | 未跟踪 | AdminChildrenFamilyFilterContract |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminContentSecurityContractTest.java` | 15 | 已自动化(@Test) | 未跟踪 | AdminContentSecurityContract |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminDataMigrationContractTest.java` | 10 | 已自动化(@Test) | 未跟踪 | AdminDataMigrationContract |
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminEarningsFamilyFilterContractTest.java` | 2 | 已自动化(@Test) | 未跟踪 | AdminEarningsFamilyFilterContract |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminFamilyRelationManageContractTest.java` | 8 | 已自动化(@Test) | 未跟踪 | AdminFamilyRelationManageContract |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminKnowledgeBaseManageContractTest.java` | 13 | 已自动化(@Test) | 未跟踪 | AdminKnowledgeBaseManageContract |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminReportParserManageContractTest.java` | 37 | 已自动化(@Test) | 未跟踪 | AdminReportParserManageContract |
@@ -1273,9 +1275,11 @@
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/GuideFamilyServiceBindTest.java` | 3 | 已自动化(@Test) | 未跟踪 | GuideFamilyServiceBind |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/GuideFamilyTaskReviewContractTest.java` | 5 | 已自动化(@Test) | 未跟踪 | GuideFamilyTaskReviewContract |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/GuidePlanReviewControllerAuthTest.java` | 6 | 已自动化(@Test) | 未跟踪 | GuidePlanReviewControllerAuth |
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/HealthAnalysisMediatorAuditContractTest.java` | 12 | 已自动化(@Test) | 未跟踪 | HealthAnalysisMediatorAuditContract |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/HealthDataSourceBridgeContractTest.java` | 16 | 已自动化(@Test) | 未跟踪 | HealthDataSourceBridgeContract |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/HealthPlanDeleteCascadeTest.java` | 6 | 已自动化(@Test) | 未跟踪 | HealthPlanDeleteCascade |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/HealthPlanLazyBackfillTest.java` | 5 | 已自动化(@Test) | 未跟踪 | HealthPlanLazyBackfill |
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/HealthPlanMedicalRedlineContractTest.java` | 7 | 已自动化(@Test) | 未跟踪 | HealthPlanMedicalRedlineContract |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/HealthPlanReviewGuardTest.java` | 10 | 已自动化(@Test) | 未跟踪 | HealthPlanReviewGuard |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/HealthReportAuditContractTest.java` | 8 | 已自动化(@Test) | 未跟踪 | HealthReportAuditContract |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/HealthReportCreateContractTest.java` | 10 | 已自动化(@Test) | 未跟踪 | HealthReportCreateContract |
@@ -1301,6 +1305,7 @@
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/OrderReceiptTimeoutContractTest.java` | 13 | 已自动化(@Test) | 未跟踪 | OrderReceiptTimeoutContract |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/OrderReceiptTimeoutTaskContractTest.java` | 14 | 已自动化(@Test) | 未跟踪 | OrderReceiptTimeoutTaskContract |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/OrderRefundScP56ScA12ContractTest.java` | 11 | 已自动化(@Test) | 未跟踪 | OrderRefundScP56ScA12Contract |
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/ParseMonitorContractTest.java` | 13 | 已自动化(@Test) | 未跟踪 | ParseMonitorContract |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/PersonalLayerDualAssertionTest.java` | 13 | 已自动化(@Test) | 未跟踪 | PersonalLayerDualAssertion |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/PlanActivationExecutionContractTest.java` | 14 | 已自动化(@Test) | 未跟踪 | PlanActivationExecutionContract |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/PlanActivationScT05ContractTest.java` | 14 | 已自动化(@Test) | 未跟踪 | PlanActivationScT05Contract |
@@ -1357,7 +1362,7 @@
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/SupplierNutritionSupplyContractTest.java` | 13 | 已自动化(@Test) | 未跟踪 | SupplierNutritionSupplyContract |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/SupplierOrderFulfillContractTest.java` | 5 | 已自动化(@Test) | 未跟踪 | SupplierOrderFulfillContract |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/TaskCheckinChildContractTest.java` | 9 | 已自动化(@Test) | 未跟踪 | TaskCheckinChildContract |
-| `cfc-backend/src/test/java/com/etotem/cfc/unit/TaskCompleteScC02ContractTest.java` | 11 | 已自动化(@Test) | 未跟踪 | TaskCompleteScC02Contract |
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/TaskCompleteScC02ContractTest.java` | 12 | 已自动化(@Test) | 未跟踪 | TaskCompleteScC02Contract |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/TaskCreateScP10ContractTest.java` | 14 | 已自动化(@Test) | 未跟踪 | TaskCreateScP10Contract |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/TaskFrequencyConfigContractTest.java` | 12 | 已自动化(@Test) | 未跟踪 | TaskFrequencyConfigContract |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/TaskFrequencyScP12ContractTest.java` | 4 | 已自动化(@Test) | 未跟踪 | TaskFrequencyScP12Contract |

+ 17 - 10
docs/tdd/test/discovery.md

@@ -7,15 +7,15 @@
 
 | 指标 | 数值 |
 | --- | --- |
-| 控制器总数 | 374 |
-| handler 方法总数 | 2035 |
-| handler 方法已覆盖 | 565 (27.8%) |
+| 控制器总数 | 376 |
+| handler 方法总数 | 2041 |
+| handler 方法已覆盖 | 567 (27.8%) |
 | 单元-全覆盖(handler 方法) | 48 |
-| 单元-部分覆盖(handler 方法) | 207 |
+| 单元-部分覆盖(handler 方法) | 209 |
 | 单元-未覆盖(handler 方法) | 118 |
 | 单元-无handler 方法 | 1 |
-| 测试文件数 | 523 |
-| @Test 方法总数 | 4491 |
+| 测试文件数 | 528 |
+| @Test 方法总数 | 4528 |
 | 含跳过/假设项(test 级 partial) | 4 |
 
 ## 二、未覆盖控制器(发现「缺口」· 非发明)
@@ -79,18 +79,18 @@
 - `UserIntentController`(`cfc-backend/src/main/java/com/etotem/cfc/controller/UserIntentController.java`,4 方法)
 - `VirtualPayController`(`cfc-backend/src/main/java/com/etotem/cfc/controller/VirtualPayController.java`,4 方法)
 - `AdminActivityRegistrationController`(`cfc-backend/src/main/java/com/etotem/cfc/controller/admin/AdminActivityRegistrationController.java`,3 方法)
-- `AdminEarningsController`(`cfc-backend/src/main/java/com/etotem/cfc/controller/admin/AdminEarningsController.java`,3 方法)
 - `AdminGrowthArchiveProductController`(`cfc-backend/src/main/java/com/etotem/cfc/controller/admin/AdminGrowthArchiveProductController.java`,3 方法)
 - `AssessmentController`(`cfc-backend/src/main/java/com/etotem/cfc/controller/guide/AssessmentController.java`,3 方法)
 - `ContactImportController`(`cfc-backend/src/main/java/com/etotem/cfc/controller/ContactImportController.java`,3 方法)
 - `DailyFeedbackController`(`cfc-backend/src/main/java/com/etotem/cfc/controller/DailyFeedbackController.java`,3 方法)
+- `FamilyAttributeController`(`cfc-backend/src/main/java/com/etotem/cfc/controller/admin/FamilyAttributeController.java`,3 方法)
 - …(其余 58 个见完整扫描)
 
 ## 三、部分覆盖控制器(已做一部分测试)
 
 > 这些控制器**已有测试但只覆盖了部分handler 方法**——即用户要求的「已经做了一部分测试的情况,要能够找到」。
 
-共 207 个:
+共 209 个:
 
 - `AdminController`:覆盖 2/65,未覆盖方法:getUsers、createUser、getUser、updateUser、resetUserPassword、searchUsers、deleteUser、getChild、updateChild、adjustPoints
 - `HealthReportController`:覆盖 9/60,未覆盖方法:getLatestReport、listFamilyReports、listAllReports、getReportIndicatorsWithPrevious、listIndicators、getGutFlora、rebuildIndicatorCurrent、getMemberIndicatorCurrent、getBodyDetail、getReportPayload
@@ -238,12 +238,14 @@
 - `NumSoulDetailConfigController`:覆盖 1/4,未覆盖方法:create、update、delete
 - `OctopusController`:覆盖 1/4,未覆盖方法:tentacles、addHelpLog、deleteHelpLog
 - `ParentAssessmentController`:覆盖 2/4,未覆盖方法:createAssessment、completeAssessment
+- `ParseMonitorController`:覆盖 1/4,未覆盖方法:monitorP0HitRate、monitorP1Top5、monitorDuration
 - `PlanReviewController`:覆盖 2/4,未覆盖方法:reviewPlan、planDetail
 - `ZodiacConfigController`:覆盖 1/4,未覆盖方法:create、update、delete
 - `ActivityFeedbackController`:覆盖 2/3,未覆盖方法:submit
 - `ActivityMaterialController`:覆盖 1/3,未覆盖方法:upload、delete
 - `AdminCfRateTierController`:覆盖 1/3,未覆盖方法:save、delete
 - `AdminCfValueController`:覆盖 1/3,未覆盖方法:getLogs、allBalances
+- `AdminEarningsController`:覆盖 1/3,未覆盖方法:familySummary、familyRecords
 - `AdminHealthPlanController`:覆盖 2/3,未覆盖方法:detail
 - `AdminNotificationTemplateController`:覆盖 1/3,未覆盖方法:save、delete
 - `AdminPackageController`:覆盖 1/3,未覆盖方法:approvePackage、rejectPackage
@@ -394,6 +396,7 @@
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/HealthReportDetailContractTest.java` | com | 13 | 13 | 1 | HealthReportController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/ManualDimensionScoreContractTest.java` | com | 13 | 6 | 2 | ManualDimensionScoreController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/OrderReceiptTimeoutContractTest.java` | com | 13 | 0 | 0 | — | — |
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/ParseMonitorContractTest.java` | com | 13 | 0 | 0 | ParseMonitorController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/PersonalLayerDualAssertionTest.java` | com | 13 | 4 | 0 | — | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/controller/ScG03LoginMethodContractTest.java` | com | 13 | 1 | 4 | — | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/SupplierNutritionSupplyContractTest.java` | com | 13 | 1 | 4 | — | — |
@@ -416,11 +419,13 @@
 | `cfc-backend/src/test/java/com/etotem/cfc/integration/service/FoodServiceTest.java` | com | 12 | 0 | 0 | — | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/GuheEvidenceIsolateContractTest.java` | com | 12 | 0 | 0 | — | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/GuheGateLowSideRedlineContractTest.java` | com | 12 | 0 | 0 | — | — |
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/HealthAnalysisMediatorAuditContractTest.java` | com | 12 | 0 | 0 | — | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/controller/HealthSleepControllerContractTest.java` | com | 12 | 1 | 2 | HealthSleepController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/service/IndicatorTimelineServiceTest.java` | com | 12 | 24 | 0 | IndicatorController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/service/MembershipServiceAiGateTest.java` | com | 12 | 0 | 0 | MembershipController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/integration/controller/PaymentControllerTest.java` | com | 12 | 17 | 5 | PaymentController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/SupplierInventoryManageContractTest.java` | com | 12 | 4 | 2 | — | — |
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/TaskCompleteScC02ContractTest.java` | com | 12 | 8 | 1 | TaskController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/TaskFrequencyConfigContractTest.java` | com | 12 | 0 | 0 | TaskController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/TeacherFamilyBindContractTest.java` | com | 12 | 6 | 0 | TeacherController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/TeamShareWeightedContractTest.java` | com | 12 | 0 | 0 | — | — |
@@ -456,7 +461,6 @@
 | `cfc-backend/src/test/java/com/etotem/cfc/common/ResultCodeFactoryTest.java` | com | 11 | 0 | 0 | — | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/controller/reward/RewardEstimateControllerEstimateTest.java` | com | 11 | 0 | 0 | RewardController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/ShopCouponClaimContractTest.java` | com | 11 | 0 | 0 | — | — |
-| `cfc-backend/src/test/java/com/etotem/cfc/unit/TaskCompleteScC02ContractTest.java` | com | 11 | 7 | 1 | TaskController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/integration/service/ActivityAdminServiceTest.java` | com | 10 | 10 | 0 | ActivityController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/ActivityAuditTest.java` | com | 10 | 4 | 0 | ActivityController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminAuditLogContractTest.java` | com | 10 | 0 | 0 | AdminAuditController | — |
@@ -586,6 +590,7 @@
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/GuheShellGuardContractTest.java` | com | 7 | 0 | 0 | — | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/GuheV2ParseContractTest.java` | com | 7 | 0 | 0 | — | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/integration/service/GuideFamilyServiceTest.java` | com | 7 | 0 | 0 | GuideController | — |
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/HealthPlanMedicalRedlineContractTest.java` | com | 7 | 0 | 0 | HealthPlanController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/LegacyDimensionCallLogServiceTest.java` | com | 7 | 0 | 0 | — | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/MembershipPlanPurchaseContractTest.java` | com | 7 | 0 | 0 | MembershipController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/orchestration/OrchestrationIntegrationTest.java` | com | 7 | 0 | 0 | OrchestrationController | — |
@@ -637,7 +642,7 @@
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/MembershipChatMemberGateContractTest.java` | com | 6 | 0 | 0 | MembershipController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/service/MembershipPaySwitchTest.java` | com | 6 | 10 | 0 | MembershipController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/MembershipViewScP59ContractTest.java` | com | 6 | 0 | 0 | MembershipController | — |
-| `cfc-backend/src/test/java/com/etotem/cfc/unit/OAuthCallbackContractTest.java` | com | 6 | 0 | 0 | — | — |
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/OAuthCallbackContractTest.java` | com | 6 | 0 | 0 | OAuthCallbackController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/ProductBrowseScP52ScG05ContractTest.java` | com | 6 | 2 | 0 | ProductController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/service/ProductOrderServiceFulfillmentMultiModeTest.java` | com | 6 | 0 | 0 | ProductController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/service/ReportAnalyzeQuotaServiceTest.java` | com | 6 | 0 | 0 | — | — |
@@ -777,7 +782,9 @@
 | `cfc-backend/src/test/java/com/etotem/cfc/integration/controller/SpecialPriceControllerTest.java` | com | 3 | 8 | 1 | SpecialPriceController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/TaskProgressUpdateTest.java` | com | 3 | 0 | 0 | TaskController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/service/UserServiceOpenidIsolationTest.java` | com | 3 | 3 | 0 | UserController | — |
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminChildrenFamilyFilterContractTest.java` | com | 2 | 3 | 1 | AdminController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/controller/admin/AdminCommissionConfigPartialUpdateTest.java` | com | 2 | 0 | 1 | AdminCommissionConfigController | — |
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminEarningsFamilyFilterContractTest.java` | com | 2 | 3 | 1 | AdminController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/ArticleBackfillTest.java` | com | 2 | 0 | 0 | ArticleController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/integration/controller/ArticleTagsContractTest.java` | com | 2 | 0 | 1 | ArticleController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/AssessmentAppointmentCreateContractTest.java` | com | 2 | 0 | 0 | AssessmentAppointmentController | — |

+ 8 - 3
docs/tdd/test/inventory.md

@@ -11,9 +11,9 @@
 | 结构化测试用例(md) | 11 | 727 |
 | Playwright(spec.js) | 96 | 571 |
 | Python(pytest) | 11 | 48 |
-| Java后端(测试文件) | 523 | 4491 (@Test) |
+| Java后端(测试文件) | 528 | 4528 (@Test) |
 | 用户场景(md) | 11 | 文件级 |
-| **合计** | — | **5837** 用例/方法 |
+| **合计** | — | **5874** 用例/方法 |
 
 ## 二、结构化测试用例(`tests/test-cases/*.md`)
 
@@ -1127,8 +1127,10 @@
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminArticleManageContractTest.java` | cfc-backend | 24 | AdminArticleManageContract | `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminArticleManageContractTest.java` |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminAuditLogContractTest.java` | cfc-backend | 10 | AdminAuditLogContract | `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminAuditLogContractTest.java` |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminBadgeManageContractTest.java` | cfc-backend | 11 | AdminBadgeManageContract | `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminBadgeManageContractTest.java` |
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminChildrenFamilyFilterContractTest.java` | cfc-backend | 2 | AdminChildrenFamilyFilterContract | `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminChildrenFamilyFilterContractTest.java` |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminContentSecurityContractTest.java` | cfc-backend | 15 | AdminContentSecurityContract | `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminContentSecurityContractTest.java` |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminDataMigrationContractTest.java` | cfc-backend | 10 | AdminDataMigrationContract | `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminDataMigrationContractTest.java` |
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminEarningsFamilyFilterContractTest.java` | cfc-backend | 2 | AdminEarningsFamilyFilterContract | `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminEarningsFamilyFilterContractTest.java` |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminFamilyRelationManageContractTest.java` | cfc-backend | 8 | AdminFamilyRelationManageContract | `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminFamilyRelationManageContractTest.java` |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminKnowledgeBaseManageContractTest.java` | cfc-backend | 13 | AdminKnowledgeBaseManageContract | `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminKnowledgeBaseManageContractTest.java` |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminReportParserManageContractTest.java` | cfc-backend | 37 | AdminReportParserManageContract | `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminReportParserManageContractTest.java` |
@@ -1268,9 +1270,11 @@
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/GuideFamilyServiceBindTest.java` | cfc-backend | 3 | GuideFamilyServiceBind | `cfc-backend/src/test/java/com/etotem/cfc/unit/GuideFamilyServiceBindTest.java` |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/GuideFamilyTaskReviewContractTest.java` | cfc-backend | 5 | GuideFamilyTaskReviewContract | `cfc-backend/src/test/java/com/etotem/cfc/unit/GuideFamilyTaskReviewContractTest.java` |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/GuidePlanReviewControllerAuthTest.java` | cfc-backend | 6 | GuidePlanReviewControllerAuth | `cfc-backend/src/test/java/com/etotem/cfc/unit/GuidePlanReviewControllerAuthTest.java` |
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/HealthAnalysisMediatorAuditContractTest.java` | cfc-backend | 12 | HealthAnalysisMediatorAuditContract | `cfc-backend/src/test/java/com/etotem/cfc/unit/HealthAnalysisMediatorAuditContractTest.java` |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/HealthDataSourceBridgeContractTest.java` | cfc-backend | 16 | HealthDataSourceBridgeContract | `cfc-backend/src/test/java/com/etotem/cfc/unit/HealthDataSourceBridgeContractTest.java` |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/HealthPlanDeleteCascadeTest.java` | cfc-backend | 6 | HealthPlanDeleteCascade | `cfc-backend/src/test/java/com/etotem/cfc/unit/HealthPlanDeleteCascadeTest.java` |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/HealthPlanLazyBackfillTest.java` | cfc-backend | 5 | HealthPlanLazyBackfill | `cfc-backend/src/test/java/com/etotem/cfc/unit/HealthPlanLazyBackfillTest.java` |
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/HealthPlanMedicalRedlineContractTest.java` | cfc-backend | 7 | HealthPlanMedicalRedlineContract | `cfc-backend/src/test/java/com/etotem/cfc/unit/HealthPlanMedicalRedlineContractTest.java` |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/HealthPlanReviewGuardTest.java` | cfc-backend | 10 | HealthPlanReviewGuard | `cfc-backend/src/test/java/com/etotem/cfc/unit/HealthPlanReviewGuardTest.java` |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/HealthReportAuditContractTest.java` | cfc-backend | 8 | HealthReportAuditContract | `cfc-backend/src/test/java/com/etotem/cfc/unit/HealthReportAuditContractTest.java` |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/HealthReportCreateContractTest.java` | cfc-backend | 10 | HealthReportCreateContract | `cfc-backend/src/test/java/com/etotem/cfc/unit/HealthReportCreateContractTest.java` |
@@ -1296,6 +1300,7 @@
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/OrderReceiptTimeoutContractTest.java` | cfc-backend | 13 | OrderReceiptTimeoutContract | `cfc-backend/src/test/java/com/etotem/cfc/unit/OrderReceiptTimeoutContractTest.java` |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/OrderReceiptTimeoutTaskContractTest.java` | cfc-backend | 14 | OrderReceiptTimeoutTaskContract | `cfc-backend/src/test/java/com/etotem/cfc/unit/OrderReceiptTimeoutTaskContractTest.java` |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/OrderRefundScP56ScA12ContractTest.java` | cfc-backend | 11 | OrderRefundScP56ScA12Contract | `cfc-backend/src/test/java/com/etotem/cfc/unit/OrderRefundScP56ScA12ContractTest.java` |
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/ParseMonitorContractTest.java` | cfc-backend | 13 | ParseMonitorContract | `cfc-backend/src/test/java/com/etotem/cfc/unit/ParseMonitorContractTest.java` |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/PersonalLayerDualAssertionTest.java` | cfc-backend | 13 | PersonalLayerDualAssertion | `cfc-backend/src/test/java/com/etotem/cfc/unit/PersonalLayerDualAssertionTest.java` |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/PlanActivationExecutionContractTest.java` | cfc-backend | 14 | PlanActivationExecutionContract | `cfc-backend/src/test/java/com/etotem/cfc/unit/PlanActivationExecutionContractTest.java` |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/PlanActivationScT05ContractTest.java` | cfc-backend | 14 | PlanActivationScT05Contract | `cfc-backend/src/test/java/com/etotem/cfc/unit/PlanActivationScT05ContractTest.java` |
@@ -1352,7 +1357,7 @@
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/SupplierNutritionSupplyContractTest.java` | cfc-backend | 13 | SupplierNutritionSupplyContract | `cfc-backend/src/test/java/com/etotem/cfc/unit/SupplierNutritionSupplyContractTest.java` |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/SupplierOrderFulfillContractTest.java` | cfc-backend | 5 | SupplierOrderFulfillContract | `cfc-backend/src/test/java/com/etotem/cfc/unit/SupplierOrderFulfillContractTest.java` |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/TaskCheckinChildContractTest.java` | cfc-backend | 9 | TaskCheckinChildContract | `cfc-backend/src/test/java/com/etotem/cfc/unit/TaskCheckinChildContractTest.java` |
-| `cfc-backend/src/test/java/com/etotem/cfc/unit/TaskCompleteScC02ContractTest.java` | cfc-backend | 11 | TaskCompleteScC02Contract | `cfc-backend/src/test/java/com/etotem/cfc/unit/TaskCompleteScC02ContractTest.java` |
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/TaskCompleteScC02ContractTest.java` | cfc-backend | 12 | TaskCompleteScC02Contract | `cfc-backend/src/test/java/com/etotem/cfc/unit/TaskCompleteScC02ContractTest.java` |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/TaskCreateScP10ContractTest.java` | cfc-backend | 14 | TaskCreateScP10Contract | `cfc-backend/src/test/java/com/etotem/cfc/unit/TaskCreateScP10ContractTest.java` |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/TaskFrequencyConfigContractTest.java` | cfc-backend | 12 | TaskFrequencyConfigContract | `cfc-backend/src/test/java/com/etotem/cfc/unit/TaskFrequencyConfigContractTest.java` |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/TaskFrequencyScP12ContractTest.java` | cfc-backend | 4 | TaskFrequencyScP12Contract | `cfc-backend/src/test/java/com/etotem/cfc/unit/TaskFrequencyScP12ContractTest.java` |