public class BlobTest extends BaseTestCase
BaseTestCase.MockConnectionConfiguration| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
TEST_BLOB_FILE_PREFIX |
protected static java.io.File |
testBlobFile |
conn, dbClass, dbName, dbUrl, isOpenSSL, mainConnectionUrl, pstmt, rs, serverVersion, stmt, timeZoneFreeDbUrl| Constructor and Description |
|---|
BlobTest() |
| Modifier and Type | Method and Description |
|---|---|
private boolean |
checkBlob(byte[] retrBytes) |
private void |
createBlobFile(int size) |
private void |
createTestTable() |
private void |
doRetrieval()
Mark this as deprecated to avoid warnings from compiler...
|
void |
setUp()
Setup the test case
|
void |
testByteStreamInsert() |
private void |
testByteStreamInsert(java.sql.Connection c)
Tests inserting blob data as a stream
|
appendRequiredProperties, assertByteArrayEquals, assertConnectionsHistory, assertEqualsFSAware, assertNonSecureConnection, assertResultSetLength, assertResultSetsEqual, assertSecureConnection, assertSecureConnection, assertSessionStatusEquals, assertThrows, assertThrows, assertThrows, assertThrows, cleanupTempFiles, createDatabase, createDatabase, createFunction, createFunction, createProcedure, createProcedure, createSchemaObject, createSchemaObject, createTable, createTable, createTable, createTable, createUser, createUser, createView, createView, currentTimeMillis, dropDatabase, dropDatabase, dropFunction, dropFunction, dropProcedure, dropProcedure, dropSchemaObject, dropSchemaObject, dropTable, dropTable, dropUser, dropUser, dropView, dropView, fillPrimitiveDefaults, getConnectionWithProps, getConnectionWithProps, getConnectionWithProps, getConnectionWithProps, getEncodedHostFromTestsuiteUrl, getEncodedHostPortPairFromTestsuiteUrl, getFailoverConnection, getFailoverConnection, getHostFreePropertiesFromTestsuiteUrl, getHostFreePropertiesFromTestsuiteUrl, getHostFromTestsuiteUrl, getInstanceNumber, getLoadBalancedConnection, getLoadBalancedConnection, getLoadBalancedConnection, getMysqlVariable, getMysqlVariable, getNewConnection, getNoDbUrl, getPort, getPortFreeHostname, getPortFromTestsuiteUrl, getPropertiesFromTestsuiteUrl, getPropertiesFromUrl, getRowCount, getSingleIndexedValueWithQuery, getSingleIndexedValueWithQuery, getSingleValue, getSingleValueWithQuery, getSourceReplicaReplicationConnection, getSourceReplicaReplicationConnection, getSourceReplicaUrl, getSourceReplicaUrl, getUnreliableFailoverConnection, getUnreliableFailoverConnection, getUnreliableLoadBalancedConnection, getUnreliableLoadBalancedConnection, getUnreliableMultiHostConnection, getUnreliableReplicationConnection, getUnreliableReplicationConnection, getUnreliableReplicationConnection, isClassAvailable, isCommunityEdition, isEnterpriseEdition, isMysqlRunningLocally, isRunningOnJRockit, isServerRunningOnWindows, isSysPropDefined, logDebug, newTempBinaryFile, randomString, removeHostRelatedProps, removeSqlMode, runLongTests, setUpBase, supportsLoadLocalInfile, supportsTestCachingSha2PasswordKeys, supportsTestCertificates, supportsTestSha256PasswordKeys, supportsTimeZoneNames, supportsTLSv1_2, tearDownBase, versionMeetsMinimum, versionMeetsMinimumprotected static java.io.File testBlobFile
private static final java.lang.String TEST_BLOB_FILE_PREFIX
@BeforeEach
public void setUp()
throws java.lang.Exception
java.lang.Exception@Test
public void testByteStreamInsert()
throws java.lang.Exception
java.lang.Exceptionprivate void testByteStreamInsert(java.sql.Connection c)
throws java.lang.Exception
c - java.lang.Exceptionprivate boolean checkBlob(byte[] retrBytes)
throws java.lang.Exception
java.lang.Exceptionprivate void createTestTable()
throws java.lang.Exception
java.lang.Exceptionprivate void doRetrieval()
throws java.lang.Exception
java.lang.Exceptionprivate void createBlobFile(int size)
throws java.lang.Exception
java.lang.Exception