diff --git a/trunk/sqltoy-orm-core/pom.xml b/trunk/sqltoy-orm-core/pom.xml index 7876ce177..feb327933 100644 --- a/trunk/sqltoy-orm-core/pom.xml +++ b/trunk/sqltoy-orm-core/pom.xml @@ -14,7 +14,7 @@ 3.10.8 4.5.14 4.4.16 - 8.14.1 + 8.14.2 2.0.51 3.12.14 5.10.3 @@ -22,7 +22,6 @@ 2.0.13 2.2.224 1.18.34 - 3.2.11 1.2.23 2.14.5 @@ -192,13 +191,6 @@ test true - - com.taosdata.jdbc - taos-jdbcdriver - ${taos-jdbcdriver.version} - test - true - com.alibaba druid diff --git a/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/SqlToyConstantsTest.java b/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/SqlToyConstantsTest.java index 12d6abd68..616b48d1d 100644 --- a/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/SqlToyConstantsTest.java +++ b/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/SqlToyConstantsTest.java @@ -1,6 +1,5 @@ package org.sagacity.sqltoy; -import java.awt.List; import java.lang.reflect.InvocationTargetException; import java.math.BigDecimal; import java.math.BigInteger; @@ -11,6 +10,7 @@ import java.util.HashMap; import java.util.Hashtable; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.regex.Matcher; import java.util.regex.Pattern; @@ -28,8 +28,7 @@ import org.sagacity.sqltoy.utils.MapperUtils; import org.sagacity.sqltoy.utils.StringUtil; -import com.alibaba.fastjson.JSON; -import com.google.common.collect.Lists; +import com.alibaba.fastjson2.JSON; public class SqlToyConstantsTest { @Test @@ -133,6 +132,42 @@ public void testBeanInfo2() throws IllegalAccessException, IllegalArgumentExcept } public static void main(String[] args) { + List c1List = new ArrayList(); + c1List.add(new C1() { + { + setIntNum(3001); + setIntegerNum(3002); + setStr("i am c1 string. 。。。。"); + setDecimal(BigDecimal.ONE); + setShortNum(Short.valueOf("399")); + setShortTNum(Short.valueOf("398")); + setDate(new Date()); + } + }); + c1List.add(new C1() { + { + setIntNum(3003); + setIntegerNum(3004); + setStr("i am c2 string. 。。。。"); + setDecimal(BigDecimal.ONE); + setShortNum(Short.valueOf("389")); + setShortTNum(Short.valueOf("388")); + setDate(new Date()); + } + }); + + c1List.add(new C1() { + { + setIntNum(3005); + setIntegerNum(3006); + setStr("i am c3 string. 。。。。"); + setDecimal(BigDecimal.ONE); + setShortNum(Short.valueOf("379")); + setShortTNum(Short.valueOf("378")); + setDate(new Date()); + } + }); + A1 aa = new A1() { { setIntNum(1001); @@ -153,37 +188,7 @@ public static void main(String[] args) { setDate(new Date()); } }); - setC(Lists.newArrayList(new C1() { - { - setIntNum(3001); - setIntegerNum(3002); - setStr("i am c1 string. 。。。。"); - setDecimal(BigDecimal.ONE); - setShortNum(Short.valueOf("399")); - setShortTNum(Short.valueOf("398")); - setDate(new Date()); - } - }, new C1() { - { - setIntNum(3003); - setIntegerNum(3004); - setStr("i am c2 string. 。。。。"); - setDecimal(BigDecimal.ONE); - setShortNum(Short.valueOf("389")); - setShortTNum(Short.valueOf("388")); - setDate(new Date()); - } - }, new C1() { - { - setIntNum(3005); - setIntegerNum(3006); - setStr("i am c3 string. 。。。。"); - setDecimal(BigDecimal.ONE); - setShortNum(Short.valueOf("379")); - setShortTNum(Short.valueOf("378")); - setDate(new Date()); - } - })); + setC(c1List); } }; diff --git a/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/config/SqlConfigParseUtilsTest.java b/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/config/SqlConfigParseUtilsTest.java index c824bf12b..ef1719e03 100644 --- a/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/config/SqlConfigParseUtilsTest.java +++ b/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/config/SqlConfigParseUtilsTest.java @@ -24,7 +24,7 @@ import org.w3c.dom.Node; import org.w3c.dom.NodeList; -import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson2.JSON; public class SqlConfigParseUtilsTest { private static DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance(); diff --git a/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/config/SqlXMLConfigParseTest.java b/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/config/SqlXMLConfigParseTest.java index f06d42e10..4ba9a4121 100644 --- a/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/config/SqlXMLConfigParseTest.java +++ b/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/config/SqlXMLConfigParseTest.java @@ -7,7 +7,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson2.JSON; public class SqlXMLConfigParseTest { /** diff --git a/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/plugins/ChainRelativeTest.java b/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/plugins/ChainRelativeTest.java index 648a557ec..911095e15 100644 --- a/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/plugins/ChainRelativeTest.java +++ b/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/plugins/ChainRelativeTest.java @@ -13,7 +13,7 @@ import org.sagacity.sqltoy.plugins.calculator.RowsChainRelative; import org.sagacity.sqltoy.utils.CollectionUtil; -import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson2.JSON; /** * 测试环比计算的正确性 diff --git a/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/plugins/GroupSummaryTest.java b/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/plugins/GroupSummaryTest.java index 718b0c158..1e7199e96 100644 --- a/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/plugins/GroupSummaryTest.java +++ b/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/plugins/GroupSummaryTest.java @@ -13,7 +13,7 @@ import org.sagacity.sqltoy.utils.NumberUtil; import org.sagacity.sqltoy.utils.StringUtil; -import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson2.JSON; public class GroupSummaryTest { @Test diff --git a/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/plugins/SqlLoopTest.java b/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/plugins/SqlLoopTest.java index d5b7968cf..dc5041f82 100644 --- a/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/plugins/SqlLoopTest.java +++ b/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/plugins/SqlLoopTest.java @@ -10,7 +10,7 @@ import org.sagacity.sqltoy.model.IgnoreKeyCaseMap; import org.sagacity.sqltoy.plugins.id.macro.impl.SqlLoop; -import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson2.JSON; public class SqlLoopTest { @Test diff --git a/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/plugins/TreeTableSortTest.java b/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/plugins/TreeTableSortTest.java index 73abedae4..b0098a8a2 100644 --- a/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/plugins/TreeTableSortTest.java +++ b/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/plugins/TreeTableSortTest.java @@ -13,7 +13,7 @@ import org.sagacity.sqltoy.plugins.calculator.TreeDataSort; import org.sagacity.sqltoy.utils.CollectionUtil; -import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson2.JSON; /** * @author zhongxuchen diff --git a/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/plugins/UnPivotListTest.java b/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/plugins/UnPivotListTest.java index 942dcf330..4144d7e41 100644 --- a/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/plugins/UnPivotListTest.java +++ b/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/plugins/UnPivotListTest.java @@ -12,7 +12,7 @@ import org.sagacity.sqltoy.plugins.calculator.UnpivotList; import org.sagacity.sqltoy.utils.CollectionUtil; -import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson2.JSON; /** * @author zhongxuchen diff --git a/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/utils/BeanUtilTest.java b/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/utils/BeanUtilTest.java index 221776175..fbc8b2ca9 100644 --- a/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/utils/BeanUtilTest.java +++ b/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/utils/BeanUtilTest.java @@ -30,7 +30,7 @@ import org.sagacity.sqltoy.model.SaveMode; import org.sagacity.sqltoy.model.SecureType; -import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson2.JSON; public class BeanUtilTest { diff --git a/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/utils/CollectionUtilTest.java b/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/utils/CollectionUtilTest.java index 07a1aa790..0addbca84 100644 --- a/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/utils/CollectionUtilTest.java +++ b/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/utils/CollectionUtilTest.java @@ -16,7 +16,7 @@ import org.sagacity.sqltoy.model.OverTimeSql; import org.sagacity.sqltoy.model.PriorityLimitSizeQueue; -import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson2.JSON; /** * @project sagacity-sqltoy diff --git a/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/utils/MapperUtilsTest.java b/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/utils/MapperUtilsTest.java index 4fe3020ce..3a87e77f6 100644 --- a/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/utils/MapperUtilsTest.java +++ b/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/utils/MapperUtilsTest.java @@ -6,7 +6,6 @@ import java.math.BigInteger; import java.time.LocalDate; import java.time.LocalDateTime; -import java.util.HashMap; import org.junit.jupiter.api.Test; import org.sagacity.sqltoy.SqlToyContext; @@ -14,11 +13,9 @@ import org.sagacity.sqltoy.demo.vo.LoginLogVO; import org.sagacity.sqltoy.demo.vo.StaffInfoVO; import org.sagacity.sqltoy.demo.vo.SysLoginLog; -import org.sagacity.sqltoy.model.MapKit; import org.sagacity.sqltoy.model.PropsMapperConfig; -import com.alibaba.fastjson.JSON; -import com.google.common.collect.Maps; +import com.alibaba.fastjson2.JSON; /** * @project sagacity-sqltoy diff --git a/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/utils/SqlUtilTest.java b/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/utils/SqlUtilTest.java index caebff935..bda2fb299 100644 --- a/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/utils/SqlUtilTest.java +++ b/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/utils/SqlUtilTest.java @@ -9,7 +9,7 @@ import org.sagacity.sqltoy.config.model.EntityMeta; import org.sagacity.sqltoy.config.model.FieldMeta; -import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson2.JSON; public class SqlUtilTest { diff --git a/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/utils/StringUtilsTest.java b/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/utils/StringUtilsTest.java index 2e25c981b..b14fc8a88 100644 --- a/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/utils/StringUtilsTest.java +++ b/trunk/sqltoy-orm-core/src/test/java/org/sagacity/sqltoy/utils/StringUtilsTest.java @@ -16,7 +16,7 @@ import org.sagacity.sqltoy.config.model.SqlToyConfig; import org.sagacity.sqltoy.utils.DataSourceUtils.DBType; -import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson2.JSON; /** * @author zhongxuchen