Class SailConcurrencyTest

java.lang.Object
org.eclipse.rdf4j.testsuite.sail.SailConcurrencyTest

public abstract class SailConcurrencyTest extends Object
Tests concurrent read and write access to a Sail implementation.
Author:
Arjohn Kampman
  • Constructor Details

    • SailConcurrencyTest

      public SailConcurrencyTest()
  • Method Details

    • setUp

      public void setUp() throws Exception
      Throws:
      Exception
    • createSail

      protected abstract Sail createSail() throws SailException
      Throws:
      SailException
    • tearDown

      public void tearDown() throws Exception
      Throws:
      Exception
    • testConcurrentAddLargeTxn

      public void testConcurrentAddLargeTxn() throws Exception
      Verifies that two large concurrent transactions in separate contexts do not cause inconsistencies or errors. This test may fail intermittently rather than consistently, given its dependency on multi-threading.
      Throws:
      Exception
      See Also:
    • testConcurrentAddLargeTxnRollback

      public void testConcurrentAddLargeTxnRollback() throws Exception
      Verifies that two large concurrent transactions in separate contexts do not cause inconsistencies or errors when one of the transactions rolls back at the end.
      Throws:
      Exception
    • testGetContextIDs

      public void testGetContextIDs() throws Exception
      Throws:
      Exception
    • fail

      protected void fail(String message, Throwable t)
    • hasFailed

      protected boolean hasFailed()
    • insertTestStatement

      protected void insertTestStatement(SailConnection connection, int i) throws SailException
      Throws:
      SailException
    • removeTestStatement

      protected void removeTestStatement(SailConnection connection, int i) throws SailException
      Throws:
      SailException