public class ConnectionTest extends JdbcTestBase
ConnectionTransactionMethodsTest
).
TODO: When here will be more tests, they should be sorted according to the Connection
methods orderJdbcTestBase.ModelAndSchema, JdbcTestBase.TestDataConnection
DrillTest.MemWatcher
watcher
c, dirTestWatcher, optionManager
logOutcome, objectMapper, REPEAT_RULE, thrownException, TIMEOUT
Constructor and Description |
---|
ConnectionTest() |
changeSchema, changeSchemaIfSupplied, connect, connect, connect, getDefaultProperties, reset, setUpTestCase, tearDownTestCase, testJdbcTestConnectionResettingCompatibility, toString, toString, withFull, withModel, withNoDefaultSchema
clear, getLocalFileSystem, mockDrillbitContext, mockUsDateFormatSymbols, mockUtcDateTimeZone, parseExpr, setupOptionManager
escapeJsonString, finishDrillTest, initDrillTest
public static void setUpConnection() throws SQLException
SQLException
public static void tearDownConnection() throws SQLException
SQLException
public void testCreateStatementBasicCaseWorks() throws SQLException
SQLException
public void testPrepareStatementBasicCaseWorks() throws SQLException
SQLException
public void testPrepareCallThrows() throws SQLException
SQLException
public void testCreateStatement_overload2_supportedCase_returns() throws SQLException
SQLException
public void testCreateStatement_overload2_unsupportedType1_throws() throws SQLException
SQLException
public void testCreateStatement_overload2_unsupportedType2_throws() throws SQLException
SQLException
public void testCreateStatement_overload2_unsupportedConcurrency_throws() throws SQLException
SQLException
public void testPrepareStatement_overload2_supportedCase_returns() throws SQLException
SQLException
public void testPrepareStatement_overload2_unsupportedType1_throws() throws SQLException
SQLException
public void testPrepareStatement_overload2_unsupportedType2_throws() throws SQLException
SQLException
public void testPrepareStatement_overload2_unsupportedConcurrency_throws() throws SQLException
SQLException
public void testCreateStatement_overload3_unsupportedHoldability_throws() throws SQLException
SQLException
public void testPrepareStatement_overload3_unsupportedHoldability_throws() throws SQLException
SQLException
public void testCreateCall_overload3_throws() throws SQLException
SQLException
public void testPrepareStatement_overload4_throws() throws SQLException
SQLException
public void testPrepareStatement_overload5_throws() throws SQLException
SQLException
public void testPrepareStatement_overload6_throws() throws SQLException
SQLException
public void testGetNetworkTimeoutSaysNoTimeout() throws SQLException
SQLException
public void testSetNetworkTimeoutAcceptsNotimeoutRequest() throws SQLException
SQLException
public void testSetNetworkTimeoutRejectsTimeoutRequest() throws SQLException
SQLException
public void testSetNetworkTimeoutRejectsTimeoutRequest2() throws SQLException
SQLException
public void testSetNetworkTimeoutRejectsBadTimeoutValue() throws SQLException
SQLException
public void testSetNetworkTimeoutRejectsBadExecutorValue() throws SQLException
SQLException
Copyright © 2022 The Apache Software Foundation. All rights reserved.