public abstract class AbstractBufferStrategyTestCase extends AbstractRawStoreTestCase
IBufferStrategy
implementations.TestCase2.MyProperties, TestCase2.RandomTyper_randomType, log| Constructor and Description |
|---|
AbstractBufferStrategyTestCase() |
AbstractBufferStrategyTestCase(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract BufferMode |
getBufferMode() |
Properties |
getProperties()
Reads in the configuration properties for the test from a
variety of resources and returns a properties hierarchy.
|
protected IRawStore |
getStore()
Return a new store that will serve as the fixture for the test.
|
void |
test_overflow()
Unit test for
AbstractBufferStrategy.overflow(long). |
void |
test_writeNoExtend()
Test verifies that a write up to the remaining extent does not trigger
an overflow.
|
void |
test_writeWithExtend()
Test verifies that a write over the remaining extent triggers an
overflow.
|
protected long |
writeRandomData(Journal store,
long nbytesToWrite,
boolean allowChecksum)
Write random bytes on the store.
|
getRandomData, test_close, test_multipleWrites, test_read_correctRejection_0L, test_read_correctRejection_zeroLength, test_readImmutable, test_write_correctRejection_emptyRecord, test_write_correctRejection_null, test_writeImmutable, test_writeRead, test_writeReadRead, testBlobObjectStreams, testEmptyStream, testSimpleStringStream, testSimpleStringStreamFromStandardAllocation, testZipStreamsassertCondition, assertCondition, assertEquals, assertEquals, getBytes, getPort, getRandomData, getRandomData, setUp, tearDownassertEquals, 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, logPropertiesassertEquals, 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, toStringpublic AbstractBufferStrategyTestCase()
public AbstractBufferStrategyTestCase(String name)
protected abstract BufferMode getBufferMode()
public Properties getProperties()
TestCase2Properties object, then the lower levels of the
hierarchy are recursively searched.The hierarchy is constructed from the following properties files in the following order. The first property file in this list corresponds to the top of the property hierarchy. The last property file in this list corresponds to the bottom of the property hierarchy. The property resources are:
getProperties in class TestCase2Properties object that supplies bindings for
property names according to the described hierarchy among
property resources. The returned Properties is NOT
cached.
TODO This does not handle the recursive truncation of the
class name to search for "test.properties" yet.protected IRawStore getStore()
AbstractRawStoreTestCasegetStore in class AbstractRawStoreTestCasepublic void test_overflow()
AbstractBufferStrategy.overflow(long). The test
verifies that the extent and the user extent are correctly updated after
an overflow.public void test_writeNoExtend()
protected long writeRandomData(Journal store, long nbytesToWrite, boolean allowChecksum)
store - The store.nbytesToWrite - The #of bytes to be written. If this is larger than the
maximum record length then multiple records will be written.public void test_writeWithExtend()
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.