|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.derbyTesting.junit.BaseTestCase
org.apache.derbyTesting.junit.BaseJDBCTestCase
org.apache.derbyTesting.functionTests.tests.lang.AnsiTrimTest
public class AnsiTrimTest
Functional test for ansi trim functionality added for DERBY-1623.
| Field Summary |
|---|
| Fields inherited from class org.apache.derbyTesting.junit.BaseTestCase |
|---|
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE |
| Constructor Summary | |
|---|---|
AnsiTrimTest(java.lang.String name)
Create a test case with the given name. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.apache.derbyTesting.junit.BaseTestCase |
|---|
alarm, assertEquals, assertEquals, assertEquals, assertExecJavaCmdAsExpected, assertSecurityManager, assertThrowableEquals, execJavaCmd, fail, getFailureFolder, getJavaExecutableName, getSystemProperty, getTestConfiguration, getTestResource, openTestResource, println, printStackTrace, readProcessOutput, removeDirectory, removeDirectory, removeSystemProperty, runBare, setSystemProperty, traceit |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runTest, setName, setUp, toString |
| Methods inherited from class junit.framework.Assert |
|---|
assertEquals, 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, fail, fail |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AnsiTrimTest(java.lang.String name)
name - of the test case.| Method Detail |
|---|
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.SQLException
public void testTrimCharIsExpr()
throws java.sql.SQLException
java.sql.SQLException
public void testTrimFromClobColumn()
throws java.sql.SQLException,
java.io.IOException
java.sql.SQLException
java.io.IOException
public void testTrimSourceIsExpr()
throws java.sql.SQLException
java.sql.SQLException
public void testTrimResultIsEmpty()
throws java.sql.SQLException
java.sql.SQLException
public void testSourceIsEmpty()
throws java.sql.SQLException
java.sql.SQLException
public void testSourceIsNull()
throws java.sql.SQLException
java.sql.SQLException
public void testSourceIsSingleChar()
throws java.sql.SQLException
java.sql.SQLException
public void testCharIsNull()
throws java.sql.SQLException
java.sql.SQLException
private void positiveTest(java.lang.String sql,
java.lang.Object expected)
throws java.sql.SQLException
java.sql.SQLException
|
Built on Sat 2009-11-28 18:44:18-0800, from revision 885187 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||