public class PositionedStoreStreamTest extends BaseTestCase
PositionedStoreStream.DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE| Constructor and Description |
|---|
PositionedStoreStreamTest(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
static junit.framework.Test |
suite() |
void |
testDerby3735()
A regression test for DERBY-3735.
|
void |
testDerby3781()
Tests that trying to move past the end of the stream leaves the stream
object in a consistent state, and can be repositioned again after the
failed reposition attempt.
|
void |
testPositionAfterEOFRead()
Verifies that reading after EOF doesn't change the position.
|
void |
testPositionAfterEOFReadArray()
Verifies that reading after EOF doesn't change the position.
|
void |
testReadEverythingInOneGo()
Reads the whole stream repeatedly in one go, and resets it after each
read.
|
void |
testRepositionBackwards() |
void |
testRepositionForwards() |
void |
testSimpleReadSequence()
Executes a simple read sequence against the lower case modern latin
alphabet, which involves some repositioning.
|
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, toStringpublic PositionedStoreStreamTest(java.lang.String name)
public void testPositionAfterEOFRead()
throws java.io.IOException,
org.apache.derby.iapi.error.StandardException
java.io.IOExceptionorg.apache.derby.iapi.error.StandardExceptionpublic void testPositionAfterEOFReadArray()
throws java.io.IOException,
org.apache.derby.iapi.error.StandardException
java.io.IOExceptionorg.apache.derby.iapi.error.StandardExceptionpublic void testReadEverythingInOneGo()
throws java.io.IOException,
org.apache.derby.iapi.error.StandardException
java.io.IOExceptionorg.apache.derby.iapi.error.StandardExceptionpublic void testRepositionForwards()
throws java.io.IOException,
org.apache.derby.iapi.error.StandardException
java.io.IOExceptionorg.apache.derby.iapi.error.StandardExceptionpublic void testRepositionBackwards()
throws java.io.IOException,
org.apache.derby.iapi.error.StandardException
java.io.IOExceptionorg.apache.derby.iapi.error.StandardExceptionpublic void testSimpleReadSequence()
throws java.io.IOException,
org.apache.derby.iapi.error.StandardException
java.io.IOExceptionorg.apache.derby.iapi.error.StandardExceptionpublic void testDerby3735()
throws java.io.IOException,
org.apache.derby.iapi.error.StandardException
If the bug is present, the repositioning will cause an EOF-exception to
be thrown in skipFully.
java.io.IOExceptionorg.apache.derby.iapi.error.StandardExceptionpublic void testDerby3781()
throws java.io.IOException,
org.apache.derby.iapi.error.StandardException
Issue logged in Jira as DERBY-3781
java.io.IOException - if reading the stream fails unexpectedlyorg.apache.derby.iapi.error.StandardException - will never happenpublic static junit.framework.Test suite()
Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.