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