public class SessionTest extends DevApiBaseTestCase
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<java.lang.String> |
createdTestSchemas |
dbCharset, dbCollation, schema, sessionbaseUrl, DEFAULT_METADATA_CHARSET, fact, isSetForXTests, testHostInfo, testProperties| Constructor and Description |
|---|
SessionTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
basicMultipleResults() |
void |
basicSessionFailoverByPriorities() |
void |
basicSessionFailoverRandomSort() |
void |
basicSql() |
void |
createAndReuseExistingSchema() |
void |
createDropSchema() |
void |
createExistingSchemaError() |
void |
errorOnPacketTooBig()
Test the client-side enforcing of server `mysqlx_max_allowed_packet'.
|
private java.lang.String |
getRandomTestSchemaName()
Create a random schema name.
|
void |
invalidDefaultSchema() |
void |
listSchemas() |
private byte[] |
makeNoticeBytes(com.google.protobuf.MessageLite msg) |
void |
pooledSessionFailoverByPrioritiesAndNoPooling() |
void |
pooledSessionFailoverByPrioritiesAndPooling() |
void |
pooledSessionFailoverRandomSortAndNoPooling() |
void |
pooledSessionFailoverRandomSortAndPooling() |
void |
setupSessionTest() |
void |
smartBufferMultipleResults() |
void |
sqlArguments() |
void |
sqlInsertAutoIncrementValue() |
void |
sqlUpdate() |
void |
teardownSessionTest() |
void |
testBug21690043()
Tests fix for Bug#21690043, CONNECT FAILS WHEN PASSWORD IS BLANK.
|
void |
testBug23045604()
Tests fix for BUG#23045604 - XSESSION.GETURI() RETURNS NPE.
|
void |
testBug23721537() |
void |
testBug27652379()
Tests fix for Bug #27652379, NPE FROM GETSESSION(PROPERTIES) WHEN HOST PARAMETER IS GIVEN IN SMALL LETTER.
|
void |
testBug28606708() |
void |
testBug28616573() |
void |
testBug97269()
Test fix for Bug#97269 (30438500), POSSIBLE BUG IN COM.MYSQL.CJ.XDEVAPI.STREAMINGDOCRESULTBUILDER.
|
void |
testBug97730()
Tests fix for Bug#97730 (31699993), xdev api: ConcurrentModificationException at Session.close.
|
void |
testConnectionCloseNotification() |
void |
testExecAsync() |
void |
testExecAsyncNegative()
Few Negative Scenarios
|
void |
testFetchOneFetchAllAsync() |
private <EX extends java.lang.Throwable> |
testPooledSessions_assertFailureTimeout(Client cli,
int expLowLimit,
int expUpLimit,
java.lang.Class<EX> throwable,
java.lang.String message) |
private void |
testPooledSessions_checkClientProperties(Client cli,
int maxSize,
int maxIdleTime,
int queueTimeout) |
void |
testPooledSessions() |
void |
testPreparedStatementsCleanup() |
void |
testPreparedStatementsPooledConnections() |
private void |
testSessionAttributes_checkClient(java.lang.String url,
java.util.Map<java.lang.String,java.lang.String> userAttributes) |
private void |
testSessionAttributes_checkSession(Session s,
java.util.Map<java.lang.String,java.lang.String> userAttributes) |
private void |
testSessionAttributes_checkSession(java.lang.String url,
java.util.Map<java.lang.String,java.lang.String> userAttributes) |
void |
testSessionAttributes() |
void |
urlWithDefaultSchema() |
void |
urlWithoutDefaultSchema() |
assertNonSecureSession, assertPreparedStatementsCount, assertPreparedStatementsCountsAndId, assertPreparedStatementsStatusCounts, assertSecureSession, assertSecureSession, buildString, count_data, destroyTestSession, dropCollection, getPreparedStatementExecutionsCount, getPreparedStatementId, getPreparedStatementsCount, getPreparedStatementsCount, getPreparedStatementsCount, getPrepDeallocateCount, getPrepExecuteCount, getPrepPrepareCount, getThreadId, isMysqlRunningLocally, isServerRunningOnWindows, makeParam, makeParam, makeParam, setupTestSession, sqlUpdate, supportsTestCertificates, supportsTLSv1_2assertSessionStatusEquals, assertSessionStatusNotEquals, assertThrows, assertThrows, assertThrows, assertThrows, createAuthenticatedTestProtocol, createTempTestCollection, createTestProtocol, createTestSchema, createTestSession, dropTempTestCollection, getEncodedTestHost, getTestDatabase, getTestHost, getTestPassword, getTestPort, getTestUser, mysqlVersionMeetsMinimum, mysqlVersionMeetsMinimum@BeforeEach public void setupSessionTest()
@AfterEach public void teardownSessionTest()
private java.lang.String getRandomTestSchemaName()
@Test public void urlWithDefaultSchema()
@Test public void urlWithoutDefaultSchema()
@Test public void invalidDefaultSchema()
@Test public void createDropSchema()
@Test public void createAndReuseExistingSchema()
@Test public void listSchemas()
@Test public void createExistingSchemaError()
@Test public void errorOnPacketTooBig()
@Test public void testBug21690043()
@Test public void basicSql()
@Test public void sqlUpdate()
@Test public void sqlArguments()
@Test public void basicMultipleResults()
@Test public void smartBufferMultipleResults()
@Test public void sqlInsertAutoIncrementValue()
@Test
public void testBug27652379()
throws java.lang.Exception
java.lang.Exception@Test public void testBug23045604()
@Test
public void testPooledSessions()
throws java.lang.Exception
java.lang.Exceptionprivate void testPooledSessions_checkClientProperties(Client cli, int maxSize, int maxIdleTime, int queueTimeout) throws java.lang.Exception
java.lang.Exceptionprivate <EX extends java.lang.Throwable> void testPooledSessions_assertFailureTimeout(Client cli, int expLowLimit, int expUpLimit, java.lang.Class<EX> throwable, java.lang.String message)
@Test
public void testBug28616573()
throws java.lang.Exception
java.lang.Exception@Test
public void testBug28606708()
throws java.lang.Exception
java.lang.Exception@Test
public void testSessionAttributes()
throws java.lang.Exception
java.lang.Exceptionprivate void testSessionAttributes_checkSession(java.lang.String url,
java.util.Map<java.lang.String,java.lang.String> userAttributes)
private void testSessionAttributes_checkSession(Session s, java.util.Map<java.lang.String,java.lang.String> userAttributes)
private void testSessionAttributes_checkClient(java.lang.String url,
java.util.Map<java.lang.String,java.lang.String> userAttributes)
throws java.lang.Exception
java.lang.Exception@Test public void testPreparedStatementsCleanup()
@Test public void testPreparedStatementsPooledConnections()
@Test
public void testBug23721537()
throws java.lang.Exception
java.lang.Exception@Test public void basicSessionFailoverRandomSort()
@Test public void basicSessionFailoverByPriorities()
@Test public void pooledSessionFailoverRandomSortAndPooling()
@Test public void pooledSessionFailoverRandomSortAndNoPooling()
@Test public void pooledSessionFailoverByPrioritiesAndPooling()
@Test public void pooledSessionFailoverByPrioritiesAndNoPooling()
@Test
public void testConnectionCloseNotification()
throws java.lang.Exception
java.lang.Exceptionprivate byte[] makeNoticeBytes(com.google.protobuf.MessageLite msg)
@Test
public void testBug97730()
throws java.lang.Throwable
java.lang.Throwable@Test
public void testExecAsync()
throws java.lang.Exception
java.lang.Exception@Test
public void testFetchOneFetchAllAsync()
throws java.lang.Exception
java.lang.Exception@Test
public void testExecAsyncNegative()
throws java.lang.Exception
java.lang.Exception@Test
public void testBug97269()
throws java.lang.Exception
java.lang.Exception