Class ModelTest

java.lang.Object
org.eclipse.rdf4j.testsuite.model.ModelTest
Direct Known Subclasses:
AbstractModelPerformanceTest

@TestInstance(PER_CLASS) @Timeout(value=1000L, unit=MILLISECONDS) public abstract class ModelTest extends Object
Abstract test suite for implementations of the Model interface
Author:
Peter Ansell
  • Field Details

    • literal1

      protected Literal literal1
    • literal2

      protected Literal literal2
    • literal3

      protected Literal literal3
    • uri1

      protected IRI uri1
    • uri2

      protected IRI uri2
    • uri3

      protected IRI uri3
    • bnode1

      protected BNode bnode1
    • bnode2

      protected BNode bnode2
    • bnode3

      protected BNode bnode3
    • vf

      protected final ValueFactory vf
  • Constructor Details

    • ModelTest

      public ModelTest()
  • Method Details

    • getNewModel

      protected abstract Model getNewModel()
    • getNewEmptyModel

      protected Model getNewEmptyModel()
      Helper method that asserts that the returned model is empty before returning.
      Returns:
      An empty instance of the Model implementation being tested.
    • getNewModelObjectSingleLiteral

      protected Model getNewModelObjectSingleLiteral()
    • getNewModelObjectSingleURI

      protected Model getNewModelObjectSingleURI()
    • getNewModelObjectSingleBNode

      protected Model getNewModelObjectSingleBNode()
    • getNewModelObjectDoubleLiteral

      protected Model getNewModelObjectDoubleLiteral()
    • getNewModelObjectDoubleURI

      protected Model getNewModelObjectDoubleURI()
    • getNewModelObjectDoubleBNode

      protected Model getNewModelObjectDoubleBNode()
    • getNewModelObjectSingleLiteralSingleURI

      protected Model getNewModelObjectSingleLiteralSingleURI()
    • getNewModelObjectSingleLiteralSingleBNode

      protected Model getNewModelObjectSingleLiteralSingleBNode()
    • getNewModelObjectSingleURISingleBNode

      protected Model getNewModelObjectSingleURISingleBNode()
    • getNewModelObjectTripleLiteral

      protected Model getNewModelObjectTripleLiteral()
    • getNewModelObjectTripleURI

      protected Model getNewModelObjectTripleURI()
    • getNewModelObjectTripleBNode

      protected Model getNewModelObjectTripleBNode()
    • getNewModelObjectSingleLiteralSingleURISingleBNode

      protected Model getNewModelObjectSingleLiteralSingleURISingleBNode()
    • getNewModelObjectSingleLiteralDoubleURI

      protected Model getNewModelObjectSingleLiteralDoubleURI()
    • getNewModelObjectSingleLiteralDoubleBNode

      protected Model getNewModelObjectSingleLiteralDoubleBNode()
    • getNewModelObjectSingleURIDoubleBNode

      protected Model getNewModelObjectSingleURIDoubleBNode()
    • getNewModelObjectSingleURIDoubleLiteral

      protected Model getNewModelObjectSingleURIDoubleLiteral()
    • getNewModelObjectSingleBNodeDoubleURI

      protected Model getNewModelObjectSingleBNodeDoubleURI()
    • getNewModelObjectSingleBNodeDoubleLiteral

      protected Model getNewModelObjectSingleBNodeDoubleLiteral()
    • getNewModelTwoContexts

      protected Model getNewModelTwoContexts()
    • setUp

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

      @AfterEach public void tearDown() throws Exception
      Throws:
      Exception
    • testGetStatements_SingleLiteral

      @Test public void testGetStatements_SingleLiteral()
    • testGetStatements_IteratorModification

      @Test public void testGetStatements_IteratorModification()
    • testGetStatements_ConcurrentModificationOfModel

      @Test public void testGetStatements_ConcurrentModificationOfModel()
    • testGetStatements_AddToEmptyModel

      @Test public void testGetStatements_AddToEmptyModel()
    • testFilterSingleLiteral

      @Test public void testFilterSingleLiteral()
    • testFilter_AddToEmptyFilteredModel

      @Test public void testFilter_AddToEmptyFilteredModel()
    • testFilter_RemoveFromFilter

      @Test public void testFilter_RemoveFromFilter()
    • testFilter_AddToNonEmptyFilteredModel

      @Test public void testFilter_AddToNonEmptyFilteredModel()
    • testFilter_AddToEmptyOriginalModel

      @Test public void testFilter_AddToEmptyOriginalModel()
    • testFilter_RemoveFromOriginal

      @Test public void testFilter_RemoveFromOriginal()
    • testFilter_AddToOriginalModel

      @Test public void testFilter_AddToOriginalModel()
    • testContainsSingleLiteral

      @Test public void testContainsSingleLiteral()
    • testSubjects

      @Test public void testSubjects()
      Test method for Model.subjects().
    • testPredicates

      @Test public void testPredicates()
      Test method for Model.predicates().
    • testObjects

      @Test public void testObjects()
      Test method for Model.objects().
    • testContexts

      @Test public void testContexts()
      Test method for Model.contexts().
    • testEqualsVsIsomorphic

      @Test public void testEqualsVsIsomorphic()
    • testEqualsHashcode

      @Test public void testEqualsHashcode()