refactor: flatten service packages

This commit is contained in:
wh
2026-04-14 13:45:15 +08:00
parent 0dbb88b803
commit ef1e4f5106
22 changed files with 45 additions and 26 deletions

View File

@@ -62,6 +62,25 @@ class PackageStructureMigrationTest {
}
}
@Test
@DisplayName("服务类已迁移到扁平 service 目录")
void serviceTypesMoved() {
for (String fqcn : java.util.List.of(
"com.label.service.ExtractionService",
"com.label.service.QaService",
"com.label.service.SysConfigService",
"com.label.service.ExportService",
"com.label.service.FinetuneService",
"com.label.service.SourceService",
"com.label.service.TaskClaimService",
"com.label.service.TaskService",
"com.label.service.AuthService",
"com.label.service.UserService",
"com.label.service.VideoProcessService")) {
assertClassExists(fqcn);
}
}
private static void assertClassExists(String fqcn) {
assertThatCode(() -> Class.forName(fqcn)).doesNotThrowAnyException();
}