feat: 完善sys_enum枚举管理与初始化能力
This commit is contained in:
@@ -34,4 +34,20 @@ class SysEnumComponentStructureTests {
|
||||
assertNotNull(serviceMethod);
|
||||
assertNotNull(controllerMethod);
|
||||
}
|
||||
|
||||
@Test
|
||||
void sysEnumShouldExposeSaveOrUpdateAndDeleteInterfaces() throws NoSuchMethodException {
|
||||
Method saveOrUpdateMethod = SysEnumController.class.getMethod("saveOrUpdate", SysEnum.class);
|
||||
Method deleteMethod = SysEnumController.class.getMethod("deleteById", Long.class);
|
||||
|
||||
assertNotNull(saveOrUpdateMethod);
|
||||
assertNotNull(deleteMethod);
|
||||
}
|
||||
|
||||
@Test
|
||||
void sysEnumShouldProvideManualInitTestEntry() throws NoSuchMethodException {
|
||||
Method initMethod = SysEnumDataInitTests.class.getMethod("initDefaultEnums");
|
||||
|
||||
assertNotNull(initMethod);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user