|
|||||||||
| 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.jdbcapi.ClobUpdatableReaderTest
public class ClobUpdatableReaderTest
Test class to test UpdateableReader for Clob in
embedded driver.
| Field Summary | |
|---|---|
private java.lang.String |
dummy
|
| Fields inherited from class org.apache.derbyTesting.junit.BaseTestCase |
|---|
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE |
| Constructor Summary | |
|---|---|
ClobUpdatableReaderTest(java.lang.String name)
|
|
| Method Summary | |
|---|---|
private int |
assertCorrectChar(int prevChar,
int nextChar)
Asserts that the two specified characters follow each other in the modern latin lowercase alphabet. |
private java.lang.String |
getUnicodeString()
Generates a (static) string containing various Unicode characters. |
void |
setUp()
Setup the test. |
static junit.framework.Test |
suite()
|
protected void |
tearDown()
Cleans up the database. |
void |
testMultiplexedOperationProblem()
Tests that the Clob can handle multiple streams and the length call multiplexed. |
void |
testUpdateableReader()
Tests updates on reader. |
void |
testUpdateableStoreReader()
Test updating a large clob |
| 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 final java.lang.String dummy
| Constructor Detail |
|---|
public ClobUpdatableReaderTest(java.lang.String name)
| Method Detail |
|---|
public void testUpdateableStoreReader()
throws java.lang.Exception
java.lang.Exception
public void testUpdateableReader()
throws java.lang.Exception
java.lang.Exception
public void testMultiplexedOperationProblem()
throws java.io.IOException,
java.sql.SQLException
This test was written after bug DERBY-2806 was reported, where getting the length of the Clob after fetching a stream from it would exhaust the stream and cause the next read to return -1.
The test is written to work on a Clob that operates on streams from the store, which currently means that it must be over a certain size and that no modifying methods can be called on it.
java.io.IOException
java.sql.SQLException
private int assertCorrectChar(int prevChar,
int nextChar)
throws java.io.IOException
java.io.IOExceptionprivate java.lang.String getUnicodeString()
public void setUp()
throws java.lang.Exception
setUp in class junit.framework.TestCasejava.sql.SQLException - if database access fails
java.lang.Exceptionpublic static junit.framework.Test suite()
protected void tearDown()
throws java.lang.Exception
tearDown in class BaseJDBCTestCasejava.lang.Exception
|
Built on Thu 2009-11-26 18:42:53-0800, from revision 884739 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||