Class RDFStoreTest

java.lang.Object
org.eclipse.rdf4j.testsuite.sail.RDFStoreTest
Direct Known Subclasses:
RDFNotifyingStoreTest

public abstract class RDFStoreTest extends Object
A JUnit test for testing Sail implementations that store RDF data. This is purely a test for data storage and retrieval which assumes that no inferencing or whatsoever is performed. This is an abstract class that should be extended for specific Sail implementations.
  • Field Details

    • to

      public org.junit.rules.Timeout to
      Timeout all individual tests after 1 minute.
    • painter

      protected IRI painter
    • paints

      protected IRI paints
    • painting

      protected IRI painting
    • picasso

      protected IRI picasso
    • rembrandt

      protected IRI rembrandt
    • guernica

      protected IRI guernica
    • nightwatch

      protected IRI nightwatch
    • context1

      protected IRI context1
    • context2

      protected IRI context2
    • sail

      protected Sail sail
    • con

      protected SailConnection con
    • vf

      protected ValueFactory vf
  • Constructor Details

    • RDFStoreTest

      public RDFStoreTest()
  • Method Details

    • setUpClass

      public static void setUpClass() throws Exception
      Throws:
      Exception
    • afterClass

      public static void afterClass() throws Exception
      Throws:
      Exception
    • createSail

      protected abstract Sail createSail()
      Gets an instance of the Sail that should be tested.
      Returns:
      a Sail.
    • setUp

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

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

      public void testEmptyRepository() throws Exception
      Throws:
      Exception
    • testValueRoundTrip1

      public void testValueRoundTrip1() throws Exception
      Throws:
      Exception
    • testValueRoundTrip2

      public void testValueRoundTrip2() throws Exception
      Throws:
      Exception
    • testValueRoundTrip3

      public void testValueRoundTrip3() throws Exception
      Throws:
      Exception
    • testValueRoundTrip4

      public void testValueRoundTrip4() throws Exception
      Throws:
      Exception
    • testValueRoundTrip5

      public void testValueRoundTrip5() throws Exception
      Throws:
      Exception
    • testDecimalRoundTrip

      public void testDecimalRoundTrip() throws Exception
      Throws:
      Exception
    • testTimeZoneRoundTrip

      public void testTimeZoneRoundTrip() throws Exception
      Throws:
      Exception
    • testLongURIRoundTrip

      public void testLongURIRoundTrip() throws Exception
      Throws:
      Exception
    • testLongLiteralRoundTrip

      public void testLongLiteralRoundTrip() throws Exception
      Throws:
      Exception
    • testReallyLongLiteralRoundTrip

      public void testReallyLongLiteralRoundTrip() throws Exception
      Throws:
      Exception
    • testLongLangRoundTrip

      public void testLongLangRoundTrip() throws Exception
      Throws:
      Exception
    • testCreateURI1

      public void testCreateURI1()
    • testCreateURI2

      public void testCreateURI2()
    • testInvalidDateTime

      public void testInvalidDateTime()
    • testSize

      public void testSize()
    • testAddData

      public void testAddData() throws Exception
      Throws:
      Exception
    • testAddWhileQuerying

      public void testAddWhileQuerying()
    • testRemoveAndClear

      public void testRemoveAndClear() throws Exception
      Throws:
      Exception
    • testClose

      public void testClose()
    • testContexts

      public void testContexts() throws Exception
      Throws:
      Exception
    • testQueryBindings

      public void testQueryBindings()
    • testStatementEquals

      public void testStatementEquals()
    • testStatementSerialization

      public void testStatementSerialization() throws Exception
      Throws:
      Exception
    • testGetNamespaces

      public void testGetNamespaces()
    • testGetNamespace

      public void testGetNamespace()
    • testClearNamespaces

      public void testClearNamespaces()
    • testRemoveNamespaces

      public void testRemoveNamespaces() throws Exception
      Throws:
      Exception
    • testNullNamespaceDisallowed

      public void testNullNamespaceDisallowed()
    • testNullPrefixDisallowed

      public void testNullPrefixDisallowed()
    • testGetContextIDs

      public void testGetContextIDs()
    • testOldURI

      public void testOldURI() throws Exception
      Throws:
      Exception
    • testDualConnections

      public void testDualConnections() throws Exception
      Throws:
      Exception
    • testBNodeReuse

      public void testBNodeReuse()
    • testDuplicateCount

      public void testDuplicateCount()
    • testDuplicateGetStatement

      public void testDuplicateGetStatement()
    • testDuplicateGetStatementAfterCommit

      public void testDuplicateGetStatementAfterCommit()
    • testDuplicateCountAfterComit

      public void testDuplicateCountAfterComit()
    • testDuplicateCountMultipleTimes

      public void testDuplicateCountMultipleTimes()
    • countContext1Elements

      protected int countContext1Elements()
    • countAllElements

      protected int countAllElements()
    • countQueryResults

      protected int countQueryResults(String query)