完善mock和测试

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@788 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-09-16 03:34:09 +00:00
parent 15096dcc8c
commit 4c03c26f9a
2 changed files with 64 additions and 3 deletions
@@ -350,6 +350,38 @@ public class ResultSetTest2 extends TestCase {
Assert.assertNotNull(error);
}
}
public void test_next() throws Exception {
resultSet.next();
raw.close();
{
SQLException error = null;
try {
resultSet.next();
} catch (SQLException ex) {
error = ex;
}
Assert.assertNotNull(error);
}
}
public void test_wasNull() throws Exception {
resultSet.wasNull();
raw.close();
{
SQLException error = null;
try {
resultSet.wasNull();
} catch (SQLException ex) {
error = ex;
}
Assert.assertNotNull(error);
}
}
}