mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
补充测试
git-svn-id: http://code.alibabatech.com/svn/druid/trunk@770 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
@@ -4,6 +4,7 @@ import java.io.InputStream;
|
||||
import java.io.Reader;
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.SQLException;
|
||||
import java.sql.SQLXML;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
@@ -822,6 +823,33 @@ public class ResultSetTest extends TestCase {
|
||||
Assert.assertNotNull(error);
|
||||
}
|
||||
}
|
||||
|
||||
public void test_updateSQLXML() throws Exception {
|
||||
resultSet.next();
|
||||
|
||||
resultSet.updateSQLXML(1, (SQLXML) null);
|
||||
resultSet.updateSQLXML("1", (SQLXML) null);
|
||||
|
||||
{
|
||||
SQLException error = null;
|
||||
try {
|
||||
resultSet.updateSQLXML("0", (SQLXML) null);
|
||||
} catch (SQLException ex) {
|
||||
error = ex;
|
||||
}
|
||||
Assert.assertNotNull(error);
|
||||
}
|
||||
|
||||
{
|
||||
SQLException error = null;
|
||||
try {
|
||||
resultSet.updateSQLXML(0, (SQLXML) null);
|
||||
} catch (SQLException ex) {
|
||||
error = ex;
|
||||
}
|
||||
Assert.assertNotNull(error);
|
||||
}
|
||||
}
|
||||
|
||||
public void test_get_error() throws Exception {
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user