public class AnsiTrimTest extends BaseJDBCTestCase
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE| Constructor and Description |
|---|
AnsiTrimTest(java.lang.String name)
Create a test case with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
decorate(java.sql.Statement s) |
private void |
positiveTest(java.lang.String sql,
java.lang.Object expected) |
static junit.framework.Test |
suite() |
void |
testCharIsNull() |
void |
testColumnsWithConstant()
trim a column with a constant trim char.
|
void |
testSourceIsEmpty() |
void |
testSourceIsNull() |
void |
testSourceIsSingleChar() |
void |
testTrimCharIsExpr()
Use a few expressions as the trim character.
|
void |
testTrimFromClobColumn()
A clob column is the input source.
|
void |
testTrimResultIsEmpty()
All the characters are trimmed.
|
void |
testTrimSourceIsExpr()
Use a few different expressions as the trim source.
|
assertCallError, assertCheckTable, assertCompileError, assertEquals, assertEquals, assertEquals, assertEquivalentDataType, assertErrorCode, assertGetIntError, assertNextError, assertPreparedStatementError, assertSQLExceptionEquals, assertSQLState, assertSQLState, assertStatementError, assertStatementError, assertStatementError, assertStatementError, assertStatementErrorUnordered, assertTableRowCount, assertUpdateCount, assertUpdateCount, assertWarning, checkAllConsistency, checkEstimatedRowCount, closeStatement, commit, createStatement, createStatement, createStatement, dropTable, dropTable, dropView, dropView, emptyStatementCache, getClientTransactionID, getConnection, getDatabaseProperty, getLastSQLException, initializeConnection, openConnection, openDefaultConnection, openDefaultConnection, openDefaultConnection, openUserConnection, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, rollback, runBare, runBareOverridable, runScript, runScript, runSQLCommands, setAutoCommit, tearDown, usingDB2Client, usingDerbyNetClient, usingEmbeddedalarm, assertDirectoryDeleted, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertExecJavaCmdAsExpected, assertLaunchedJUnitTestMethod, assertLaunchedJUnitTestMethod, assertSecurityManager, assertThrowableEquals, currentDirectory, execJavaCmd, execJavaCmd, fail, getClassVersionMajor, getEmmaJar, getFailureFolder, getFilesWith, getJavaExecutableName, getSystemProperty, getTestConfiguration, getTestResource, hasInterruptibleIO, isCVM, isIBMJVM, isJ9Platform, isJava5, isJava7, isJava8, isPhoneME, isPlatform, isSunJVM, isWindowsPlatform, openTestResource, println, printStackTrace, readProcessOutput, removeDirectory, removeDirectory, removeFiles, removeSystemProperty, runsWithEmma, runsWithJaCoCo, setSystemProperty, sleep, sleepAtLeastOneTick, traceitassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runTest, setName, setUp, toStringpublic AnsiTrimTest(java.lang.String name)
name - of the test case.public static void decorate(java.sql.Statement s)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static junit.framework.Test suite()
public void testColumnsWithConstant()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testTrimCharIsExpr()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testTrimFromClobColumn()
throws java.sql.SQLException,
java.io.IOException
java.sql.SQLExceptionjava.io.IOExceptionpublic void testTrimSourceIsExpr()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testTrimResultIsEmpty()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testSourceIsEmpty()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testSourceIsNull()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testSourceIsSingleChar()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testCharIsNull()
throws java.sql.SQLException
java.sql.SQLExceptionprivate void positiveTest(java.lang.String sql,
java.lang.Object expected)
throws java.sql.SQLException
java.sql.SQLExceptionApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.