public class TestCopyStream extends AbstractRepositoryTestCase
Note: Copying streams is basically a sequence of atomic append operations.
TestAppendBlock
is responsible for covering the behavior of the
atomic append operation, including when spanning multiple index partitions,
etc. The unit tests in TestCopyStream
are only required to test the
logic that breaks down the FileVersionOutputStream
into a sequence of
atomic append operations.
TestCase2.MyProperties, TestCase2.RandomType
BLOCK_SIZE, repo
client, dataService0, dataService1, fed, metadataService
keyBuilder, log, r
_randomType
Constructor and Description |
---|
TestCopyStream() |
TestCopyStream(String name) |
Modifier and Type | Method and Description |
---|---|
void |
test_copyStream_emptyBlock()
Test copy of an empty stream resulting in one block.
|
void |
test_copyStream_fullBlock()
Test copy of an stream containing exactly one block's data.
|
void |
test_copyStream_fullBlockPlusOne()
Test copy of an stream containing exactly one byte more than a full block
of data.
|
void |
test_copyStream_largeRandomStreams()
Stress test writing large streams of random length.
|
void |
test_copyStream_largeStream()
Test the ability to write a stream onto the index that is automatically
partitioned into blocks.
|
void |
test_copyStream_nearlyFullBlock()
Test copy of an stream containing exactly one byte less than a full block
of data.
|
void |
test_copyStream_smallRandomStreams()
Stress test writing small streams of random length (from zero bytes to a
full block in length).
|
void |
test_copyStream_smallStream()
Copies a short stream onto a file version and reads it back.
|
getProperties, read, read, setUp, tearDown
assertEquals, assertEquals, assertEquals, assertIndexRegistered, awaitAsynchronousOverflow, getPartitionCount
assertChildKeys, assertEntryCounts, assertKeys, assertKeys, assertKeys, assertSameAbstractNodeData, assertSameBTree, assertSameEntryIterator, assertSameEntryIterator, assertSameIterator, assertSameIterator, assertSameLeaf, assertSameLeafData, assertSameNode, assertSameNodeData, assertSameNodeOrLeaf, assertSameRaba, assertValues, assertValues, doEntryIteratorTest, doInsertKeySequenceTest, doInsertLookupRemoveStressTest, doInsertRandomKeySequenceTest, doInsertRandomKeySequenceTest, doInsertRandomSparseKeySequenceTest, doKnownKeySequenceTest, doRandomIndexOfTest, doRandomKeyInsertTest, doRandomLookupTest, doRemoveStructureStressTest, doSplitTest, doSplitWithDecreasingKeySequence, doSplitWithIncreasingKeySequence, doSplitWithRandomDenseKeySequence, getBTree, getBTree, getKeysAndValues, getRandomKeys, getRandomKeyValues, i2k, nextLong, useRawRecords
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEqualsWithinUlps, assertSameArray, assertSameArray, assertSameBigDecimal, assertSameBigDecimal, assertSameBigInteger, assertSameBigInteger, assertSameIterator, assertSameIterator, assertSameIteratorAnyOrder, assertSameIteratorAnyOrder, assertSameValue, assertSameValue, assertZeroUlps, assertZeroUlps, fail, getInnerCause, getNormalInt, getProjectBuildPath, getRandomObject, getRandomObject, getRandomOrder, getRandomString, getTestInputStream, getTestResource, getTestResource, getUlps, getUlps, isDEBUG, isDEBUG, isINFO, isINFO, isInnerCause, logProperties
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, runBare, runTest, setName, toString
public TestCopyStream()
public TestCopyStream(String name)
public void test_copyStream_smallStream() throws IOException
IOException
public void test_copyStream_emptyBlock() throws IOException
IOException
public void test_copyStream_nearlyFullBlock() throws IOException
IOException
public void test_copyStream_fullBlock() throws IOException
IOException
public void test_copyStream_fullBlockPlusOne() throws IOException
IOException
public void test_copyStream_smallRandomStreams() throws IOException
IOException
public void test_copyStream_largeStream() throws IOException
IOException
public void test_copyStream_largeRandomStreams() throws IOException
IOException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.