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, assertEquals, assertExecJavaCmdAsExpected, assertLaunchedJUnitTestMethod, assertLaunchedJUnitTestMethod, assertSameNullness, assertSecurityManager, assertThrowableEquals, currentDirectory, execJavaCmd, execJavaCmd, execJavaCmd, fail, getClassVersionMajor, getEmmaJar, getFailureFolder, getFilesWith, getJavaExecutableName, getSystemProperty, getTestConfiguration, getTestResource, hasInterruptibleIO, isCVM, isIBMJVM, isJ9Platform, isJava5, isJava7, isPhoneME, isPlatform, isSunJVM, isWindowsPlatform, newAssertionFailedError, openTestResource, println, printStackTrace, readProcessOutput, removeDirectory, removeDirectory, removeFiles, removeSystemProperty, runBare, runsWithEmma, runsWithJaCoCo, setSystemErr, setSystemOut, setSystemProperty, sleep, sleepAtLeastOneTick, traceit, vmAtLeast
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runTest, setName, setUp, tearDown, toString
public PositionedStoreStreamTest(java.lang.String name)
public void testPositionAfterEOFRead() throws java.io.IOException, org.apache.derby.iapi.error.StandardException
java.io.IOException
org.apache.derby.iapi.error.StandardException
public void testPositionAfterEOFReadArray() throws java.io.IOException, org.apache.derby.iapi.error.StandardException
java.io.IOException
org.apache.derby.iapi.error.StandardException
public void testReadEverythingInOneGo() throws java.io.IOException, org.apache.derby.iapi.error.StandardException
java.io.IOException
org.apache.derby.iapi.error.StandardException
public void testRepositionForwards() throws java.io.IOException, org.apache.derby.iapi.error.StandardException
java.io.IOException
org.apache.derby.iapi.error.StandardException
public void testRepositionBackwards() throws java.io.IOException, org.apache.derby.iapi.error.StandardException
java.io.IOException
org.apache.derby.iapi.error.StandardException
public void testSimpleReadSequence() throws java.io.IOException, org.apache.derby.iapi.error.StandardException
java.io.IOException
org.apache.derby.iapi.error.StandardException
public 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.IOException
org.apache.derby.iapi.error.StandardException
public 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.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.