| testsuite.BaseTestCase testsuite.regression.StringRegressionTest
StringRegressionTest | public class StringRegressionTest extends BaseTestCase (Code) | | Tests for regressions of bugs in String handling in the driver.
author: Mark Matthews version: StringRegressionTest.java,v 1.1 2002/11/04 14:58:25 mark_matthews version: Exp |
Method Summary | |
public static void | main(String[] args) | public void | testAsciiCharConversion() Tests character conversion bug. | public void | testBug11614() Tests fix for BUG#11614 - StringUtils.getBytes() doesn't work when using
multibyte character encodings and a length in _characters_ is specified. | public void | testBug11629() | public void | testBug23645() Tests fix for BUG#23645 - Some collations/character sets reported as "unknown"
(specifically cias variants of existing character sets), and inability to override
the detected server character set. | public void | testBug24840() | public void | testBug25047() Tests fix for BUG#25047 - StringUtils.indexOfIgnoreCaseRespectQuotes() isn't
case-insensitive on the first character of the target. | public void | testBug4010() Tests fix for BUG#4010 -- GBK encoding getting escaped doubly when
database default character set is GBK. | public void | testBug7601() Tests fix for BUG#7601, '+' duplicated in fixDecimalExponent(). | public void | testCodePage1252() | public void | testEncodingRegression() | public void | testEscapeSJISDoubleEscapeBug() | public void | testGreekUtf8411() | public void | testLatin1Encoding() Tests that 'latin1' character conversion works correctly. | public void | testNewlines() Tests newline being treated correctly. | public void | testSjis5c() Tests that the 0x5c escaping works (we didn't use to have this). | public void | testUtf8Encoding() Tests that UTF-8 character conversion works correctly. | public void | testUtf8Encoding2() |
StringRegressionTest | public StringRegressionTest(String name)(Code) | | Creates a new StringTest object.
Parameters: name - DOCUMENT ME! |
main | public static void main(String[] args)(Code) | | Runs all test cases in this test suite
Parameters: args - |
testAsciiCharConversion | public void testAsciiCharConversion() throws Exception(Code) | | Tests character conversion bug.
throws: Exception - if there is an internal error (which is a bug). |
testBug11614 | public void testBug11614() throws Exception(Code) | | Tests fix for BUG#11614 - StringUtils.getBytes() doesn't work when using
multibyte character encodings and a length in _characters_ is specified.
throws: Exception - if the test fails. |
testBug23645 | public void testBug23645() throws Exception(Code) | | Tests fix for BUG#23645 - Some collations/character sets reported as "unknown"
(specifically cias variants of existing character sets), and inability to override
the detected server character set.
throws: Exception - if the test fails. |
testBug24840 | public void testBug24840() throws Exception(Code) | | Tests fix for BUG#24840 - character encoding of "US-ASCII"
doesn't map correctly for 4.1 or newer
throws: Exception - if the test fails. |
testBug25047 | public void testBug25047() throws Exception(Code) | | Tests fix for BUG#25047 - StringUtils.indexOfIgnoreCaseRespectQuotes() isn't
case-insensitive on the first character of the target.
throws: Exception - if the test fails. |
testBug4010 | public void testBug4010() throws Exception(Code) | | Tests fix for BUG#4010 -- GBK encoding getting escaped doubly when
database default character set is GBK. Requires version older than 4.1.0
and server set to default character set of 'gbk' to run.
throws: Exception - if the test fails. |
testBug7601 | public void testBug7601() throws Exception(Code) | | Tests fix for BUG#7601, '+' duplicated in fixDecimalExponent().
throws: Exception - if the test fails |
testEncodingRegression | public void testEncodingRegression() throws Exception(Code) | | Tests for regression of encoding forced by user, reported by Jive
Software
throws: Exception - when encoding is not supported (which is a bug) |
testEscapeSJISDoubleEscapeBug | public void testEscapeSJISDoubleEscapeBug() throws Exception(Code) | | Tests fix for BUG#879
throws: Exception - if the bug resurfaces. |
testLatin1Encoding | public void testLatin1Encoding() throws Exception(Code) | | Tests that 'latin1' character conversion works correctly.
throws: Exception - if any errors occur |
testNewlines | public void testNewlines() throws Exception(Code) | | Tests newline being treated correctly.
throws: Exception - if an error occurs |
testSjis5c | public void testSjis5c() throws Exception(Code) | | Tests that the 0x5c escaping works (we didn't use to have this).
throws: Exception - if an error occurs. |
testUtf8Encoding | public void testUtf8Encoding() throws Exception(Code) | | Tests that UTF-8 character conversion works correctly.
throws: Exception - if any errors occur |
Methods inherited from testsuite.BaseTestCase | protected void cleanupTempFiles(File exampleTempFile, String tempfilePrefix)(Code)(Java Doc) protected void closeMemberJDBCResources()(Code)(Java Doc) protected void createFunction(String functionName, String functionDefn) throws SQLException(Code)(Java Doc) protected void createProcedure(String procedureName, String procedureDefn) throws SQLException(Code)(Java Doc) protected void createSchemaObject(String objectType, String objectName, String columnsAndOtherStuff) throws SQLException(Code)(Java Doc) protected void createTable(String tableName, String columnsAndOtherStuff) throws SQLException(Code)(Java Doc) protected void dropFunction(String functionName) throws SQLException(Code)(Java Doc) protected void dropProcedure(String procedureName) throws SQLException(Code)(Java Doc) protected void dropSchemaObject(String objectType, String objectName) throws SQLException(Code)(Java Doc) protected void dropTable(String tableName) throws SQLException(Code)(Java Doc) protected Connection getAdminConnection() throws SQLException(Code)(Java Doc) protected Connection getAdminConnectionWithProps(Properties props) throws SQLException(Code)(Java Doc) protected Connection getConnectionWithProps(String propsList) throws SQLException(Code)(Java Doc) protected Connection getConnectionWithProps(String url, String propsList) throws SQLException(Code)(Java Doc) protected Connection getConnectionWithProps(Properties props) throws SQLException(Code)(Java Doc) protected Connection getConnectionWithProps(String url, Properties props) throws SQLException(Code)(Java Doc) protected int getInstanceNumber()(Code)(Java Doc) protected String getMysqlVariable(Connection c, String variableName) throws SQLException(Code)(Java Doc) protected String getMysqlVariable(String variableName) throws SQLException(Code)(Java Doc) protected Properties getPropertiesFromTestsuiteUrl() throws SQLException(Code)(Java Doc) protected int getRowCount(String tableName) throws SQLException(Code)(Java Doc) protected Object getSingleIndexedValueWithQuery(Connection c, int columnIndex, String query) throws SQLException(Code)(Java Doc) protected Object getSingleIndexedValueWithQuery(int columnIndex, String query) throws SQLException(Code)(Java Doc) protected Object getSingleValue(String tableName, String columnName, String whereClause) throws SQLException(Code)(Java Doc) protected Object getSingleValueWithQuery(String query) throws SQLException(Code)(Java Doc) protected boolean isAdminConnectionConfigured()(Code)(Java Doc) protected boolean isClassAvailable(String classname)(Code)(Java Doc) protected boolean isRunningOnJRockit()(Code)(Java Doc) protected boolean isRunningOnJdk131()(Code)(Java Doc) protected boolean isServerRunningOnWindows() throws SQLException(Code)(Java Doc) public void logDebug(String message)(Code)(Java Doc) protected File newTempBinaryFile(String name, long size) throws IOException(Code)(Java Doc) protected String randomString()(Code)(Java Doc) final protected boolean runLongTests()(Code)(Java Doc) protected boolean runMultiHostTests()(Code)(Java Doc) protected boolean runTestIfSysPropDefined(String propName)(Code)(Java Doc) public void setUp() throws Exception(Code)(Java Doc) public void tearDown() throws Exception(Code)(Java Doc) protected boolean versionMeetsMinimum(int major, int minor) throws SQLException(Code)(Java Doc) protected boolean versionMeetsMinimum(int major, int minor, int subminor) throws SQLException(Code)(Java Doc)
|
|
|