public class StringUtilsTest extends BaseTestCase
BaseTestCase.MockConnectionConfigurationconn, dbClass, dbName, dbUrl, isOpenSSL, mainConnectionUrl, pstmt, rs, serverVersion, stmt, timeZoneFreeDbUrl| Constructor and Description |
|---|
StringUtilsTest() |
| Modifier and Type | Method and Description |
|---|---|
private static void |
printRuler(java.lang.String txt) |
void |
testAppendAsHex()
Tests StringUtil.appendAsHex() methods.
|
void |
testGetBytes()
Tests StringUtil.getBytes() methods.
|
void |
testIndexOfIgnoreCase()
Tests StringUtil.indexOfIgnoreCase() methods
|
private int |
testIndexOfIgnoreCaseMySQLIndexMarker(java.lang.String source,
int pos) |
void |
testIndexOfQuoteDoubleAware()
Tests StringUtil.indexOfQuoteDoubleAware() method
|
void |
testJoinWithSerialComma()
Tests StringUtils.joinWithSerialComma().
|
void |
testQuoteUnquoteBytes()
Tests StringUtils.quoteBytes()
|
void |
testQuoteUnQuoteIdentifierWithBackQuote()
Tests StringUtil.quoteIdentifier() and StringUtil.unQuoteIdentifier() methods using back quote marks.
|
void |
testQuoteUnQuoteIdentifierWithDoubleQuote()
Tests StringUtil.quoteIdentifier() and StringUtil.unQuoteIdentifier() methods using double quote marks.
|
void |
testSplit()
Tests StringUtils.split() methods.
|
void |
testSplitCornerCases()
Tests StringUtils.split() methods for corner cases.
|
void |
testStringUtils001() |
void |
testStripComments() |
void |
testWildCompare()
Tests StringUtils.wildCompare() method.
|
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, versionMeetsMinimum@Test
public void testIndexOfIgnoreCase()
throws java.lang.Exception
java.lang.Exceptionprivate int testIndexOfIgnoreCaseMySQLIndexMarker(java.lang.String source,
int pos)
private static void printRuler(java.lang.String txt)
@Test
public void testIndexOfQuoteDoubleAware()
throws java.lang.Exception
java.lang.Exception@Test
public void testAppendAsHex()
throws java.lang.Exception
java.lang.Exception@Test
public void testGetBytes()
throws java.lang.Exception
java.lang.Exception@Test
public void testQuoteUnQuoteIdentifierWithBackQuote()
throws java.lang.Exception
java.lang.Exception@Test
public void testQuoteUnQuoteIdentifierWithDoubleQuote()
throws java.lang.Exception
java.lang.Exception@Test
public void testWildCompare()
throws java.lang.Exception
java.lang.Exception@Test
public void testSplit()
throws java.lang.Exception
java.lang.Exception@Test
public void testSplitCornerCases()
throws java.lang.Exception
java.lang.Exception@Test
public void testJoinWithSerialComma()
throws java.lang.Exception
java.lang.Exception@Test
public void testQuoteUnquoteBytes()
throws java.lang.Exception
java.lang.Exception@Test
public void testStringUtils001()
throws java.lang.Exception
java.lang.Exception@Test
public void testStripComments()
throws java.lang.Exception
java.lang.Exception