add testcase

This commit is contained in:
wenshao
2012-01-04 13:38:19 +08:00
parent 64d3e2eac1
commit 408b5c778f
4 changed files with 77 additions and 3 deletions
@@ -546,7 +546,7 @@ public class BasicTypeTest extends TestCase {
}
try {
cstmt.getBlob(12).free();
} catch (SQLFeatureNotSupportedException ex) {
} catch (SQLException ex) {
}
try {
@@ -288,7 +288,7 @@ public class PrecallTest extends TestCase {
try {
cstmt.getClob(1);
} catch (SQLFeatureNotSupportedException ex) {
} catch (SQLException ex) {
}
try {
@@ -54,7 +54,7 @@ public class WrapImplTest extends TestCase {
Assert.assertEquals(url, dataSource.getUrl());
Assert.assertEquals("jdbc:derby:classpath:petstore-db", dataSource.getRawUrl());
Assert.assertEquals(10, dataSource.getRawDriverMajorVersion());
Assert.assertEquals(6, dataSource.getRawDriverMinorVersion());
Assert.assertEquals(8, dataSource.getRawDriverMinorVersion());
Assert.assertFalse(connection.isWrapperFor(com.mysql.jdbc.Connection.class));
Assert.assertTrue(connection.isWrapperFor(ConnectionProxyImpl.class));