补充测试

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@770 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-09-15 10:32:07 +00:00
parent 2fd70b79b8
commit 5f3fb01ea7
2 changed files with 60 additions and 40 deletions
@@ -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 {
{