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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ModelHelper method that asserts that the returned model is empty before returning.protected abstract Modelprotected Modelprotected Modelprotected Modelprotected Modelprotected Modelprotected Modelprotected Modelprotected Modelprotected Modelprotected Modelprotected Modelprotected Modelprotected Modelprotected Modelprotected Modelprotected Modelprotected Modelprotected Modelprotected Modelprotected ModelvoidsetUp()voidtearDown()voidTest method forModel.contains(Resource, IRI, Value, Resource...).voidTest method forModel.contexts().voidvoidvoidvoidvoidvoidvoidvoidvoidTest method forModel.filter(Resource, IRI, Value, Resource...).voidvoidvoidvoidvoidTest method forModel.objects().voidTest method forModel.predicates().voidTest method forModel.subjects().
-
Field Details
-
literal1
-
literal2
-
literal3
-
uri1
-
uri2
-
uri3
-
bnode1
-
bnode2
-
bnode3
-
vf
-
-
Constructor Details
-
ModelTest
public ModelTest()
-
-
Method Details
-
getNewModel
-
getNewEmptyModel
Helper method that asserts that the returned model is empty before returning.- Returns:
- An empty instance of the
Modelimplementation being tested.
-
getNewModelObjectSingleLiteral
-
getNewModelObjectSingleURI
-
getNewModelObjectSingleBNode
-
getNewModelObjectDoubleLiteral
-
getNewModelObjectDoubleURI
-
getNewModelObjectDoubleBNode
-
getNewModelObjectSingleLiteralSingleURI
-
getNewModelObjectSingleLiteralSingleBNode
-
getNewModelObjectSingleURISingleBNode
-
getNewModelObjectTripleLiteral
-
getNewModelObjectTripleURI
-
getNewModelObjectTripleBNode
-
getNewModelObjectSingleLiteralSingleURISingleBNode
-
getNewModelObjectSingleLiteralDoubleURI
-
getNewModelObjectSingleLiteralDoubleBNode
-
getNewModelObjectSingleURIDoubleBNode
-
getNewModelObjectSingleURIDoubleLiteral
-
getNewModelObjectSingleBNodeDoubleURI
-
getNewModelObjectSingleBNodeDoubleLiteral
-
getNewModelTwoContexts
-
setUp
- Throws:
Exception
-
tearDown
- 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()Test method forModel.filter(Resource, IRI, Value, Resource...). -
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()Test method forModel.contains(Resource, IRI, Value, Resource...). -
testSubjects
@Test public void testSubjects()Test method forModel.subjects(). -
testPredicates
@Test public void testPredicates()Test method forModel.predicates(). -
testObjects
@Test public void testObjects()Test method forModel.objects(). -
testContexts
@Test public void testContexts()Test method forModel.contexts(). -
testEqualsVsIsomorphic
@Test public void testEqualsVsIsomorphic() -
testEqualsHashcode
@Test public void testEqualsHashcode()
-