public class TestTx extends ProxyTestCase<Journal>
TestCase2.MyProperties, TestCase2.RandomType
_randomType, log
Modifier and Type | Method and Description |
---|---|
void |
test_commit_noConflict01()
Simple test of commit semantics (no conflict).
|
void |
test_delete001()
Two transactions (tx0, tx1) are created.
|
void |
test_delete002()
Two transactions (tx0, tx1) are created.
|
void |
test_delete003()
Two transactions (tx0, tx1) are created.
|
void |
test_deletePreExistingVersion_noConflict()
Test in which a transaction deletes a pre-existing version (that is, a
version that existed in global scope when the transaction was started).
|
void |
test_indexNotVisibleUnlessCommitted()
Verify that an index is not visible in the tx unless the native
transaction in which it is registered has already committed before the tx
starts.
|
void |
test_noIndicesRegistered()
Test verifies that a transaction may start when there are (a) no commits
on the journal; and (b) no indices have been registered.
|
void |
test_readIsolation()
Create a journal, setup an index, write an entry on that index, and
commit the store.
|
void |
test_readOnlyTx()
Unit test written to verify that a read-only tx gets the same view of an
index when it has the same ground state as another read-only tx.
|
void |
test_sameIndexObject()
Test verifies that you always get the same object back when you ask for
an isolated named index.
|
void |
test_writeIsolation()
Test verifies that an isolated write is visible inside of a transaction
(tx1) but not in a concurrent transaction (tx2) and not in the unisolated
index until the tx1 commits.
|
void |
testStress()
Stress test for concurrent transactions against a single named index.
|
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 TestTx()
public TestTx(String name)
public void test_noIndicesRegistered()
Note: The transaction will be unable to isolate an index if the index has not been registered already by an unisolated operation.
public void test_indexNotVisibleUnlessCommitted()
public void test_sameIndexObject()
public void test_readIsolation()
public void test_writeIsolation()
public void test_delete001()
public void test_delete002()
public void test_delete003()
public void test_commit_noConflict01()
public void test_deletePreExistingVersion_noConflict()
public void test_readOnlyTx()
BTree
rather than an
IsolatedFusedView
.public void testStress() throws InterruptedException, ExecutionException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.