public class TestRestartSafe extends ProxyTestCase<Journal>
Modifier and Type | Class and Description |
---|---|
static class |
TestRestartSafe.MyBTree |
TestCase2.MyProperties, TestCase2.RandomType
_randomType, log
Constructor and Description |
---|
TestRestartSafe() |
TestRestartSafe(String name) |
Modifier and Type | Method and Description |
---|---|
BTree |
getBTree(int branchingFactor,
Journal journal)
Return a btree backed by a journal with the indicated branching factor.
|
void |
test_restartSafe_offsetBits()
Test verifies that the journal can be correctly reopened when using a
non-default value for
offsetBits . |
void |
test_restartSafe01()
Test basic btree is restart safe, including a test of
BTree.removeAll() |
void |
test_restartSafeCounter()
Test verifies that the
ICounter is restart-safe. |
void |
test_restartSafeSubclass()
Test verifies that classes which extend
BTree are correctly
restored by BTree.load(IRawStore, long, boolean) . |
getDelegate, getOurDelegate, getProperties, getStore, getStore, reopenStore, setDelegate, setUp, tearDown
checkIfProxy, fail, getRandomData, setUp, tearDown
assertCondition, assertCondition, assertEquals, assertEquals, getBytes, getPort, getRandomData, getRandomData
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 TestRestartSafe()
public TestRestartSafe(String name)
name
- public BTree getBTree(int branchingFactor, Journal journal)
SimpleEntry
objects.branchingFactor
- The branching factor.public void test_restartSafe01() throws IOException
BTree.removeAll()
IOException
public void test_restartSafe_offsetBits() throws IOException
offsetBits
. The data on the
BTree
is verified in order to force reads from the last commit
point on the journal after it is reopened.IOException
public void test_restartSafeCounter()
ICounter
is restart-safe.public void test_restartSafeSubclass()
BTree
are correctly
restored by BTree.load(IRawStore, long, boolean)
.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.