remove fastjson dependency

This commit is contained in:
wenshao
2012-08-21 15:46:10 +08:00
parent a530c906ae
commit 7cea73b2c1
9 changed files with 94 additions and 40 deletions
@@ -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);
}
}
}