refactor: flatten service packages
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user