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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidprotected voidprotected longcount(SailConnection con, Resource subj, IRI pred, Value obj, boolean includeInferred, Resource... contexts) protected abstract Sailprotected voidprotected ThreadincrementBy(CountDownLatch start, CountDownLatch observed, IsolationLevels level, ValueFactory vf, IRI subj, IRI pred, int by) protected voidinsertTestStatement(SailConnection connection, int i) protected booleanisSupported(IsolationLevels level) protected LiteralreadLiteral(SailConnection con, IRI subj, IRI pred) voidsetUp()static voidvoidtearDown()voidtestLargeTransaction(IsolationLevel isolationLevel, int count) voidvoidvoidvoidvoidtestNone()voidvoidvoidvoidvoid
-
Field Details
-
store
-
-
Constructor Details
-
SailIsolationLevelTest
public SailIsolationLevelTest()
-
-
Method Details
-
setUpClass
@BeforeAll public static void setUpClass() -
afterClass
@AfterAll public static void afterClass() -
setUp
@BeforeEach public void setUp() -
tearDown
@AfterEach public void tearDown() -
createSail
- Throws:
SailException
-
isSupported
- Throws:
SailException
-
testNone
@Test public void testNone() -
testReadUncommitted
@Test public void testReadUncommitted() -
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()
-