Class IsolationLevelTest
java.lang.Object
org.eclipse.rdf4j.testsuite.repository.optimistic.IsolationLevelTest
Test that the Repository correctly supports claimed isolation levels.
- Author:
- James Leigh
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidprotected voidprotected longcount(RepositoryConnection con, Resource subj, IRI pred, Value obj, boolean includeInferred, Resource... contexts) protected voidprotected ThreadincrementBy(CountDownLatch start, CountDownLatch observed, IsolationLevels level, ValueFactory vf, IRI subj, IRI pred, int by) protected voidinsertTestStatement(RepositoryConnection connection, int i) protected booleanisSupported(IsolationLevels level) protected LiteralreadLiteral(RepositoryConnection con, IRI subj, IRI pred) voidsetUp()static voidvoidtearDown()voidtestNone()voidvoidvoidvoidvoid
-
Field Details
-
store
-
-
Constructor Details
-
IsolationLevelTest
public IsolationLevelTest()
-
-
Method Details
-
setUpClass
public static void setUpClass() -
afterClass
public static void afterClass() -
setUp
- Throws:
Exception
-
tearDown
public void tearDown() -
isSupported
- Throws:
RepositoryException
-
testNone
public void testNone() -
testReadUncommitted
public void testReadUncommitted() -
testReadCommitted
- Throws:
Exception
-
testSnapshotRead
- Throws:
Exception
-
testSnapshot
- Throws:
Exception
-
testSerializable
- Throws:
Exception
-
incrementBy
protected Thread incrementBy(CountDownLatch start, CountDownLatch observed, IsolationLevels level, ValueFactory vf, IRI subj, IRI pred, int by) -
count
protected long count(RepositoryConnection con, Resource subj, IRI pred, Value obj, boolean includeInferred, Resource... contexts) throws RepositoryException - Throws:
RepositoryException
-
readLiteral
protected Literal readLiteral(RepositoryConnection con, IRI subj, IRI pred) throws RepositoryException - Throws:
RepositoryException
-
insertTestStatement
protected void insertTestStatement(RepositoryConnection connection, int i) throws RepositoryException - Throws:
RepositoryException
-
fail
-
assertNotFailed
protected void assertNotFailed()
-