mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
remove fastjson dependency
This commit is contained in:
@@ -10,8 +10,7 @@ import junit.framework.TestCase;
|
||||
|
||||
import com.alibaba.druid.pool.vendor.OracleExceptionSorter;
|
||||
import com.alibaba.druid.stat.JdbcStatManager;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.serializer.SerializerFeature;
|
||||
import com.alibaba.druid.support.json.JSONUtils;
|
||||
|
||||
public class TestOracle_DruidDataSource extends TestCase {
|
||||
|
||||
@@ -69,13 +68,13 @@ public class TestOracle_DruidDataSource extends TestCase {
|
||||
endLatch.await();
|
||||
|
||||
for (Object item : JdbcStatManager.getInstance().getDataSourceList().values()) {
|
||||
String text = JSON.toJSONString(item, SerializerFeature.UseISO8601DateFormat);
|
||||
System.out.println(JSON.toJSONString(JSON.parseObject(text, TreeMap.class), true));
|
||||
String text = JSONUtils.toJSONString(item);
|
||||
System.out.println(text);
|
||||
}
|
||||
|
||||
for (Object item : JdbcStatManager.getInstance().getSqlList().values()) {
|
||||
String text = JSON.toJSONString(item, SerializerFeature.UseISO8601DateFormat);
|
||||
System.out.println(JSON.toJSONString(JSON.parseObject(text, TreeMap.class), true));
|
||||
String text = JSONUtils.toJSONString(item);
|
||||
System.out.println(text);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user