public class ByteArrayCombinerStreamTest extends BaseTestCase
ByteArrayCombinerStream.| Modifier and Type | Field and Description |
|---|---|
private org.apache.derby.client.am.ByteArrayCombinerStream |
combiner |
private static byte[] |
defaultArray |
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE| Constructor and Description |
|---|
ByteArrayCombinerStreamTest(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
static junit.framework.Test |
suite() |
void |
testCombineAvailable4bytes() |
void |
testCombineAvailableNull() |
void |
testCombineNullRead() |
void |
testCombineNullReadArray() |
void |
testCombineOneArray() |
void |
testCombineWithExtraEmptyByteArray()
Make sure an extra "empty" array doesn't cause errors.
|
void |
testCominbe100SmallArrays() |
void |
testNegativeLengthArgument()
Make sure an exception is thrown if a negative length is specified.
|
void |
testNegativeValueInDataCausesEndOfStream()
Demonstrate that the stream does not change negative values in the
underlying data.
|
void |
testTooLittleDataNoCombine()
Make sure an exception is thrown if there is less data available than
the specified length.
|
void |
testTooLittleDataWithCombine()
Make sure an exception is thrown if there is less data available than
the specified length.
|
void |
testTruncateDataFromOneArray() |
void |
testTruncateDataFromTwoArrays() |
alarm, 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, runBare, 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, tearDown, toStringprivate static final byte[] defaultArray
private org.apache.derby.client.am.ByteArrayCombinerStream combiner
public ByteArrayCombinerStreamTest(java.lang.String name)
public void testCombineNullRead()
throws java.io.IOException
java.io.IOExceptionpublic void testCombineNullReadArray()
throws java.io.IOException
java.io.IOExceptionpublic void testCombineAvailableNull()
throws java.io.IOException
java.io.IOExceptionpublic void testCombineAvailable4bytes()
throws java.io.IOException
java.io.IOExceptionpublic void testCombineWithExtraEmptyByteArray()
throws java.io.IOException
nextArray to not return null when it
should, causing an ArrayIndexOutOfBoundsException.
This bug was corrected by DERBY-1417.java.io.IOExceptionpublic void testCombineOneArray()
throws java.io.IOException
java.io.IOExceptionpublic void testCominbe100SmallArrays()
throws java.io.IOException
java.io.IOExceptionpublic void testTruncateDataFromOneArray()
throws java.io.IOException
java.io.IOExceptionpublic void testTruncateDataFromTwoArrays()
throws java.io.IOException
java.io.IOExceptionpublic void testTooLittleDataNoCombine()
public void testTooLittleDataWithCombine()
public void testNegativeLengthArgument()
public void testNegativeValueInDataCausesEndOfStream()
throws java.io.IOException
java.io.IOExceptionpublic static junit.framework.Test suite()
Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.