Class IsolationLevelTest
- java.lang.Object
-
- org.eclipse.rdf4j.testsuite.repository.optimistic.IsolationLevelTest
-
public class IsolationLevelTest extends Object
Test that the Repository correctly supports claimed isolation levels.- Author:
- James Leigh
-
-
Field Summary
Fields Modifier and Type Field Description protected Repository
store
-
Constructor Summary
Constructors Constructor Description IsolationLevelTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
afterClass()
protected void
assertNotFailed()
protected long
count(RepositoryConnection con, Resource subj, IRI pred, Value obj, boolean includeInferred, Resource... contexts)
protected void
fail(String message, Throwable t)
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
setUpClass()
void
tearDown()
void
testNone()
void
testReadCommitted()
void
testReadUncommitted()
void
testSerializable()
void
testSnapshot()
void
testSnapshotRead()
-
-
-
Field Detail
-
store
protected Repository store
-
-
Method Detail
-
isSupported
protected boolean isSupported(IsolationLevels level) throws RepositoryException
- Throws:
RepositoryException
-
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
-
assertNotFailed
protected void assertNotFailed()
-
-