public class Drill2489CallsAfterCloseThrowExceptionsTest extends JdbcTestBase
SQLException when called on a closed primary object (e.g.,
Connection, ResultSet, etc.).
NOTE: This test currently covers:
Connection,
Statement,
PreparedStatement,
ResultSet,
ResultSetMetaData, and
DatabaseMetaData.
It does not cover unimplemented CallableStatement or any relevant
secondary objects such as Array or Struct).
JdbcTestBase.ModelAndSchema, JdbcTestBase.TestDataConnectionDrillTest.MemWatcherwatcherc, dirTestWatcher, optionManagerlogOutcome, objectMapper, REPEAT_RULE, thrownException, TIMEOUT| Constructor and Description |
|---|
Drill2489CallsAfterCloseThrowExceptionsTest() |
| Modifier and Type | Method and Description |
|---|---|
static void |
setUpClosedObjects() |
static void |
tearDownConnection() |
void |
testClosedConnection_close_doesNotThrow() |
void |
testClosedConnection_isClosed_returnsTrue() |
void |
testClosedConnectionMethodsThrowRight() |
void |
testClosedDatabaseMetaDataMethodsThrowRight() |
void |
testClosedPlainStatement_close_doesNotThrow() |
void |
testClosedPlainStatement_isClosed_returnsTrue() |
void |
testClosedPlainStatementMethodsThrowRight() |
void |
testClosedPreparedStatement_close_doesNotThrow() |
void |
testClosedPreparedStatement_isClosed_returnsTrue() |
void |
testclosedPreparedStmtOfOpenConnMethodsThrowRight() |
void |
testClosedResultSet_close_doesNotThrow() |
void |
testClosedResultSet_isClosed_returnsTrue() |
void |
testClosedResultSetMetaDataMethodsThrowRight1() |
void |
testClosedResultSetMetaDataMethodsThrowRight2() |
void |
testClosedResultSetMethodsThrowRight1() |
void |
testClosedResultSetMethodsThrowRight2() |
changeSchema, changeSchemaIfSupplied, connect, connect, connect, getDefaultProperties, reset, setUpTestCase, tearDownTestCase, testJdbcTestConnectionResettingCompatibility, toString, toString, withFull, withModel, withNoDefaultSchemaclear, getLocalFileSystem, mockDrillbitContext, mockUsDateFormatSymbols, mockUtcDateTimeZone, parseExpr, setupOptionManagerescapeJsonString, finishDrillTest, initDrillTestpublic Drill2489CallsAfterCloseThrowExceptionsTest()
public void testClosedConnection_close_doesNotThrow()
throws SQLException
SQLExceptionpublic void testClosedConnection_isClosed_returnsTrue()
throws SQLException
SQLExceptionpublic void testClosedPlainStatement_close_doesNotThrow()
throws SQLException
SQLExceptionpublic void testClosedPlainStatement_isClosed_returnsTrue()
throws SQLException
SQLExceptionpublic void testClosedPreparedStatement_close_doesNotThrow()
throws SQLException
SQLExceptionpublic void testClosedPreparedStatement_isClosed_returnsTrue()
throws SQLException
SQLExceptionpublic void testClosedResultSet_close_doesNotThrow()
throws SQLException
SQLExceptionpublic void testClosedResultSet_isClosed_returnsTrue()
throws SQLException
SQLExceptionpublic void testClosedConnectionMethodsThrowRight()
public void testClosedPlainStatementMethodsThrowRight()
public void testclosedPreparedStmtOfOpenConnMethodsThrowRight()
public void testClosedResultSetMethodsThrowRight1()
public void testClosedResultSetMethodsThrowRight2()
public void testClosedResultSetMetaDataMethodsThrowRight1()
public void testClosedResultSetMetaDataMethodsThrowRight2()
public void testClosedDatabaseMetaDataMethodsThrowRight()
Copyright © 2021 The Apache Software Foundation. All rights reserved.