change
This commit is contained in:
parent
b9da747d2d
commit
ecd22634ef
|
@ -67,37 +67,33 @@ public class StatementTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(expected = SQLException.class)
|
@Test(expected = SQLException.class)
|
||||||
public void testUnsupport() {
|
public void testUnsupport() throws SQLException {
|
||||||
try {
|
Assert.assertNotNull(statement.unwrap(TSDBStatement.class));
|
||||||
Assert.assertNotNull(statement.unwrap(TSDBStatement.class));
|
Assert.assertTrue(statement.isWrapperFor(TSDBStatement.class));
|
||||||
Assert.assertTrue(statement.isWrapperFor(TSDBStatement.class));
|
|
||||||
|
|
||||||
statement.getMaxFieldSize();
|
statement.getMaxFieldSize();
|
||||||
statement.setMaxFieldSize(0);
|
statement.setMaxFieldSize(0);
|
||||||
statement.setEscapeProcessing(true);
|
statement.setEscapeProcessing(true);
|
||||||
statement.cancel();
|
statement.cancel();
|
||||||
statement.getWarnings();
|
statement.getWarnings();
|
||||||
statement.clearWarnings();
|
statement.clearWarnings();
|
||||||
statement.setCursorName(null);
|
statement.setCursorName(null);
|
||||||
statement.getMoreResults();
|
statement.getMoreResults();
|
||||||
statement.setFetchDirection(0);
|
statement.setFetchDirection(0);
|
||||||
statement.getFetchDirection();
|
statement.getFetchDirection();
|
||||||
statement.getResultSetConcurrency();
|
statement.getResultSetConcurrency();
|
||||||
statement.getResultSetType();
|
statement.getResultSetType();
|
||||||
statement.getConnection();
|
statement.getConnection();
|
||||||
statement.getMoreResults();
|
statement.getMoreResults();
|
||||||
statement.getGeneratedKeys();
|
statement.getGeneratedKeys();
|
||||||
statement.executeUpdate(null, 0);
|
statement.executeUpdate(null, 0);
|
||||||
statement.executeUpdate(null, new int[]{0});
|
statement.executeUpdate(null, new int[]{0});
|
||||||
statement.executeUpdate(null, new String[]{"str1", "str2"});
|
statement.executeUpdate(null, new String[]{"str1", "str2"});
|
||||||
statement.getResultSetHoldability();
|
statement.getResultSetHoldability();
|
||||||
statement.setPoolable(true);
|
statement.setPoolable(true);
|
||||||
statement.isPoolable();
|
statement.isPoolable();
|
||||||
statement.closeOnCompletion();
|
statement.closeOnCompletion();
|
||||||
statement.isCloseOnCompletion();
|
statement.isCloseOnCompletion();
|
||||||
} catch (SQLException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@AfterClass
|
@AfterClass
|
||||||
|
|
Loading…
Reference in New Issue