mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add testcase
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user