Package org.eclipse.rdf4j.testsuite.sail
Class SailIsolationLevelTest
java.lang.Object
org.eclipse.rdf4j.testsuite.sail.SailIsolationLevelTest
Simple tests to sanity check that Sail correctly supports claimed isolation levels.
- Author:
- James Leigh
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected long
count
(SailConnection con, Resource subj, IRI pred, Value obj, boolean includeInferred, Resource... contexts) protected abstract Sail
protected void
protected Thread
incrementBy
(CountDownLatch start, CountDownLatch observed, IsolationLevels level, ValueFactory vf, IRI subj, IRI pred, int by) protected void
insertTestStatement
(SailConnection connection, int i) protected boolean
isSupported
(IsolationLevels level) protected Literal
readLiteral
(SailConnection con, IRI subj, IRI pred) void
setUp()
static void
void
tearDown()
void
testLargeTransaction
(IsolationLevel isolationLevel, int count) void
void
void
void
void
testNone()
void
void
void
void
void
-
Field Details
-
store
-
-
Constructor Details
-
SailIsolationLevelTest
public SailIsolationLevelTest()
-
-
Method Details
-
setUpClass
public static void setUpClass() -
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
createSail
- Throws:
SailException
-
isSupported
- Throws:
SailException
-
testNone
- Throws:
Exception
-
testReadUncommitted
- Throws:
Exception
-
testReadCommitted
- Throws:
Exception
-
testSnapshotRead
- Throws:
Exception
-
testSnapshot
- Throws:
Exception
-
testSerializable
- Throws:
Exception
-
testLargeTransactionReadCommitted
- Throws:
InterruptedException
-
testLargeTransactionSnapshot
- Throws:
InterruptedException
-
testLargeTransactionSnapshotRead
- Throws:
InterruptedException
-
testLargeTransactionSerializable
- Throws:
InterruptedException
-
testLargeTransaction
public void testLargeTransaction(IsolationLevel isolationLevel, int count) throws InterruptedException - Throws:
InterruptedException
-
incrementBy
protected Thread incrementBy(CountDownLatch start, CountDownLatch observed, IsolationLevels level, ValueFactory vf, IRI subj, IRI pred, int by) -
count
protected long count(SailConnection con, Resource subj, IRI pred, Value obj, boolean includeInferred, Resource... contexts) throws SailException - Throws:
SailException
-
readLiteral
- Throws:
SailException
-
insertTestStatement
- Throws:
SailException
-
fail
-
assertNotFailed
protected void assertNotFailed()
-