|
|||||||||
| 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.CharUTF8Test
public class CharUTF8Test
Test all characters written through the UTF8 format.
| Field Summary | |
|---|---|
private java.sql.PreparedStatement |
psGet
|
private java.sql.PreparedStatement |
psSet
|
| Fields inherited from class org.apache.derbyTesting.junit.BaseTestCase |
|---|
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE |
| Constructor Summary | |
|---|---|
CharUTF8Test(java.lang.String name)
Basic constructor. |
|
| Method Summary | |
|---|---|
private java.lang.String |
getBody(int key)
|
protected void |
initializeConnection(java.sql.Connection conn)
Sets the auto commit to false. |
private void |
setBody(int key,
java.lang.String body)
|
protected void |
setUp()
|
static junit.framework.Test |
suite()
Returns the implemented tests. |
protected void |
tearDown()
Tear down this fixture, sub-classes should call super.tearDown(). |
void |
testEmptyStringUTF8()
Checks if an ampty UTF8 string is correctly handled. |
void |
testUTF8()
Tests the correct handling of UTF8 char sequence. |
| 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, 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 |
| Field Detail |
|---|
private java.sql.PreparedStatement psSet
private java.sql.PreparedStatement psGet
| Constructor Detail |
|---|
public CharUTF8Test(java.lang.String name)
| Method Detail |
|---|
protected void initializeConnection(java.sql.Connection conn)
throws java.sql.SQLException
initializeConnection in class BaseJDBCTestCaseconn - Connection to be intialized
java.sql.SQLException - Error setting the initial state.public static junit.framework.Test suite()
Test with the implemented tests to
run.
protected void setUp()
throws java.lang.Exception
setUp in class junit.framework.TestCasejava.lang.Exception
protected void tearDown()
throws java.lang.Exception
BaseJDBCTestCase
tearDown in class BaseJDBCTestCasejava.lang.Exception
public void testUTF8()
throws java.sql.SQLException
java.sql.SQLException
public void testEmptyStringUTF8()
throws java.sql.SQLException
java.sql.SQLException
private void setBody(int key,
java.lang.String body)
throws java.sql.SQLException
java.sql.SQLException
private java.lang.String getBody(int key)
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 | ||||||||