diff --git a/kernel-d-scanner/scanner-api/pom.xml b/kernel-d-scanner/scanner-api/pom.xml index 17f1f4279..b0e826e9d 100644 --- a/kernel-d-scanner/scanner-api/pom.xml +++ b/kernel-d-scanner/scanner-api/pom.xml @@ -48,6 +48,12 @@ spring-boot-starter-validation test + + com.javaguns.roses + db-api + ${roses.version} + test + diff --git a/kernel-d-scanner/scanner-api/src/test/java/cn/stylefeng/roses/kernel/scanner/api/TestObject.java b/kernel-d-scanner/scanner-api/src/test/java/cn/stylefeng/roses/kernel/scanner/api/TestObject.java index 91dc65286..98ed6e195 100644 --- a/kernel-d-scanner/scanner-api/src/test/java/cn/stylefeng/roses/kernel/scanner/api/TestObject.java +++ b/kernel-d-scanner/scanner-api/src/test/java/cn/stylefeng/roses/kernel/scanner/api/TestObject.java @@ -3,6 +3,8 @@ package cn.stylefeng.roses.kernel.scanner.api; import cn.hutool.core.collection.ListUtil; import cn.hutool.core.lang.TypeReference; import cn.hutool.core.util.IdUtil; +import cn.stylefeng.roses.kernel.db.api.pojo.page.PageResult; +import cn.stylefeng.roses.kernel.rule.pojo.response.ResponseData; import cn.stylefeng.roses.kernel.scanner.api.factory.ClassMetaFactory; import cn.stylefeng.roses.kernel.scanner.api.pojo.SimpleObject; import cn.stylefeng.roses.kernel.scanner.api.pojo.resource.FieldMetadata; @@ -39,4 +41,17 @@ public class TestObject { System.out.println(jsonString); } + @Test + public void testPageResult() { + Type type = new TypeReference>>() { + }.getType(); + + FieldMetadata fieldMetadata = ClassMetaFactory.beginCreateFieldMetadata(type, IdUtil.fastSimpleUUID()); + + String jsonString = JSON.toJSONString(fieldMetadata, JSONWriter.Feature.PrettyFormat); + + System.out.println(jsonString); + } + + }