public class TestCommitHistory extends ProxyTestCase<Journal>
Journal
. Also verifies that
a canonicalizing cache is maintained (you never obtain distinct concurrent
instances of the same commit record).TestCase2.MyProperties, TestCase2.RandomType
_randomType, log
Constructor and Description |
---|
TestCommitHistory() |
TestCommitHistory(String name) |
Modifier and Type | Method and Description |
---|---|
void |
assertEquals(ICommitRecord expected,
ICommitRecord actual)
Compare two
ICommitRecord s for equality in their data. |
void |
test_behaviorBeforeAnythingIsCommitted()
Test that
AbstractJournal.getCommitRecord(long) returns null if invoked
before anything has been committed. |
void |
test_canonicalizingCache()
Test verifies that exact match and find always return the same reference
for the same commit record (at least as long as the test holds a hard
reference to the commit record of interest).
|
void |
test_commitRecordIndex_find()
Tests for finding (less than or equal to) historical commit records using
the commit record index.
|
void |
test_commitRecordIndex_restartSafe()
Tests whether the
CommitRecordIndex is restart-safe. |
void |
test_objectCache()
Test of the canonicalizing object cache used to prevent distinct
instances of a historical index from being created.
|
void |
test_recoverCommitRecord()
Test the ability to recover a
ICommitRecord from the
CommitRecordIndex . |
void |
test_recoverCommitRecordNoHistory()
Test the ability to recover a
ICommitRecord from the
CommitRecordIndex . |
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 TestCommitHistory()
public TestCommitHistory(String name)
name
- public void assertEquals(ICommitRecord expected, ICommitRecord actual)
ICommitRecord
s for equality in their data.expected
- actual
- public void test_behaviorBeforeAnythingIsCommitted() throws IOException
AbstractJournal.getCommitRecord(long)
returns null if invoked
before anything has been committed.IOException
public void test_recoverCommitRecord()
ICommitRecord
from the
CommitRecordIndex
.public void test_recoverCommitRecordNoHistory()
ICommitRecord
from the
CommitRecordIndex
.
A second commit should be void and therefore the previous record
should be retrievable.public void test_commitRecordIndex_restartSafe()
CommitRecordIndex
is restart-safe.public void test_commitRecordIndex_find() throws IOException
IOException
public void test_canonicalizingCache()
public void test_objectCache()
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.