|
|||||||||
| 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.ResultSetStreamTest
public class ResultSetStreamTest
| Field Summary | |
|---|---|
private static java.lang.String |
filePath
|
private static java.lang.String |
sep
|
(package private) static java.lang.String |
TEST_STRING_DATA
|
| Fields inherited from class org.apache.derbyTesting.junit.BaseTestCase |
|---|
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE |
| Constructor Summary | |
|---|---|
ResultSetStreamTest(java.lang.String name)
|
|
| Method Summary | |
|---|---|
private void |
assertMisMatchStreamLength(java.sql.SQLException sqle)
|
static junit.framework.Test |
basesuite(java.lang.String name)
|
void |
binaryStreamProcessing()
Test getBinaryStream by comparing chksum of retrieved value. |
private static java.lang.String |
drainStringFromSource(java.io.Reader src)
Drains the specified reader and returns a string. |
private void |
insertData()
Test insert of data with setBinaryStream |
static junit.framework.Test |
suite()
|
void |
testBinaryStreamProcessing()
|
void |
testGetAsciiStream()
|
void |
testGetCharacterStream()
test getCharacterStream against inserted data |
void |
testInsertData()
|
void |
testSetMaxFieldSizeLarge()
Tests that the max field size limit is handled correctly when accessing values as streams. |
| 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 |
| Field Detail |
|---|
private static java.lang.String filePath
private static java.lang.String sep
static final java.lang.String TEST_STRING_DATA
| Constructor Detail |
|---|
public ResultSetStreamTest(java.lang.String name)
| Method Detail |
|---|
public void testInsertData()
throws java.sql.SQLException,
java.lang.Exception
java.sql.SQLException
java.lang.Exception
private void insertData()
throws java.sql.SQLException,
java.io.FileNotFoundException,
java.io.IOException
java.sql.SQLException
java.io.FileNotFoundException
java.io.IOExceptionprivate void assertMisMatchStreamLength(java.sql.SQLException sqle)
public void testBinaryStreamProcessing()
throws java.sql.SQLException,
java.lang.Exception
java.sql.SQLException
java.lang.Exception
public void binaryStreamProcessing()
throws java.sql.SQLException,
java.io.IOException
java.sql.SQLException
java.io.IOException
public void testGetAsciiStream()
throws java.sql.SQLException,
java.io.IOException
java.sql.SQLException
java.io.IOException
public void testGetCharacterStream()
throws java.sql.SQLException,
java.io.IOException
java.sql.SQLException
java.io.IOException
public void testSetMaxFieldSizeLarge()
throws java.io.IOException,
java.sql.SQLException
java.io.IOException - if something goes wrong
java.sql.SQLException - if something goes wrong
private static java.lang.String drainStringFromSource(java.io.Reader src)
throws java.io.IOException
src - the reader to drain
java.io.IOException - if reading from the source failspublic static junit.framework.Test basesuite(java.lang.String name)
public static junit.framework.Test suite()
|
Built on Wed 2009-11-25 18:43:31-0800, from revision 884373 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||