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
ICommitRecords 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, tearDowncheckIfProxy, fail, getRandomData, setUp, tearDownassertCondition, assertCondition, assertEquals, assertEquals, getBytes, getPort, getRandomData, getRandomDataassertEquals, 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 TestCommitHistory()
public TestCommitHistory(String name)
name - public void assertEquals(ICommitRecord expected, ICommitRecord actual)
ICommitRecords 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.IOExceptionpublic 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
IOExceptionpublic void test_canonicalizingCache()
public void test_objectCache()
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.