Class RDFStoreTest

  • Direct Known Subclasses:
    RDFNotifyingStoreTest

    @Timeout(60L)
    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 Detail

      • 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
    • Constructor Detail

      • RDFStoreTest

        public RDFStoreTest()
    • Method Detail

      • setUpClass

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

        @AfterAll
        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.
      • testEmptyRepository

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

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

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

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

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

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

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

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

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

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

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

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

        @Test
        public void testCreateURI1()
      • testCreateURI2

        @Test
        public void testCreateURI2()
      • testInvalidDateTime

        @Test
        public void testInvalidDateTime()
      • testSize

        @Test
        public void testSize()
      • testAddTripleContext

        @Test
        public void testAddTripleContext()
      • testAddWhileQuerying

        @Test
        public void testAddWhileQuerying()
      • testRemoveAndClear

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

        @Test
        public void testClose()
      • testQueryBindings

        @Test
        public void testQueryBindings()
      • testStatementEquals

        @Test
        public void testStatementEquals()
      • testStatementSerialization

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

        @Test
        public void testGetNamespaces()
      • testGetNamespace

        @Test
        public void testGetNamespace()
      • testClearNamespaces

        @Test
        public void testClearNamespaces()
      • testRemoveNamespaces

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

        @Test
        public void testNullNamespaceDisallowed()
      • testNullPrefixDisallowed

        @Test
        public void testNullPrefixDisallowed()
      • testGetContextIDs

        @Test
        public void testGetContextIDs()
      • testDualConnections

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

        @Test
        public void testBNodeReuse()
      • testDuplicateCount

        @Test
        public void testDuplicateCount()
      • testDuplicateGetStatement

        @Test
        public void testDuplicateGetStatement()
      • testDuplicateGetStatementAfterCommit

        @Test
        public void testDuplicateGetStatementAfterCommit()
      • testDuplicateCountAfterComit

        @Test
        public void testDuplicateCountAfterComit()
      • testDuplicateCountMultipleTimes

        @Test
        public void testDuplicateCountMultipleTimes()
      • countContext1Elements

        protected int countContext1Elements()
      • countAllElements

        protected int countAllElements()
      • countQueryResults

        protected int countQueryResults​(String query)