Package org.eclipse.rdf4j.testsuite.sail
Class SailIsolationLevelTest
- java.lang.Object
-
- org.eclipse.rdf4j.testsuite.sail.SailIsolationLevelTest
-
public abstract class SailIsolationLevelTest extends Object
Simple tests to sanity check that Sail correctly supports claimed isolation levels.- Author:
- James Leigh
-
-
Constructor Summary
Constructors Constructor Description SailIsolationLevelTest()
-
Method Summary
-
-
-
Field Detail
-
store
protected Sail store
-
-
Method Detail
-
setUpClass
@BeforeAll public static void setUpClass()
-
afterClass
@AfterAll public static void afterClass()
-
createSail
protected abstract Sail createSail() throws SailException
- Throws:
SailException
-
isSupported
protected boolean isSupported(IsolationLevels level) throws SailException
- Throws:
SailException
-
testLargeTransactionReadCommitted
@Test public void testLargeTransactionReadCommitted() throws InterruptedException
- Throws:
InterruptedException
-
testLargeTransactionSnapshot
@Test public void testLargeTransactionSnapshot() throws InterruptedException
- Throws:
InterruptedException
-
testLargeTransactionSnapshotRead
@Test public void testLargeTransactionSnapshotRead() throws InterruptedException
- Throws:
InterruptedException
-
testLargeTransactionSerializable
@Test public void testLargeTransactionSerializable() throws InterruptedException
- 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
protected Literal readLiteral(SailConnection con, IRI subj, IRI pred) throws SailException
- Throws:
SailException
-
insertTestStatement
protected void insertTestStatement(SailConnection connection, int i) throws SailException
- Throws:
SailException
-
assertNotFailed
protected void assertNotFailed()
-
-