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 Repositorystore
-
Constructor Summary
Constructors Constructor Description IsolationLevelTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidafterClass()protected voidassertNotFailed()protected longcount(RepositoryConnection con, Resource subj, IRI pred, Value obj, boolean includeInferred, Resource... contexts)protected voidfail(String message, Throwable t)protected 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 voidsetUpClass()voidtearDown()voidtestNone()voidtestReadCommitted()voidtestReadUncommitted()voidtestSerializable()voidtestSnapshot()voidtestSnapshotRead()
-
-
-
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()
-
-