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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
protected void
protected long
count
(RepositoryConnection con, Resource subj, IRI pred, Value obj, boolean includeInferred, Resource... contexts) protected void
protected Thread
incrementBy
(CountDownLatch start, CountDownLatch observed, IsolationLevels level, ValueFactory vf, IRI subj, IRI pred, int by) protected void
insertTestStatement
(RepositoryConnection connection, int i) protected boolean
isSupported
(IsolationLevels level) protected Literal
readLiteral
(RepositoryConnection con, IRI subj, IRI pred) void
setUp()
static void
void
tearDown()
void
testNone()
void
void
void
void
void
-
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()
-