Class ModelNamespacesTest
java.lang.Object
org.eclipse.rdf4j.testsuite.model.ModelNamespacesTest
An abstract test class to test the handling of namespaces by
Model implementations.- Author:
- Peter Ansell p_ansell@yahoo.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ModelImplementing tests must return a new, empty, Model for each call to this method.voidsetUp()voidtearDown()final voidTest method forNamespaceAware.getNamespace(java.lang.String).final voidTest method forNamespaceAware.getNamespace(java.lang.String).final voidTest method forNamespaceAware.getNamespaces().final voidTest method forNamespaceAware.getNamespace(java.lang.String).final voidTest method forNamespaceAware.getNamespaces().final voidTest method forNamespaceAware.getNamespaces().final voidTest method forModel.removeNamespace(java.lang.String).final voidTest method forModel.removeNamespace(java.lang.String).final voidTest method forModel.removeNamespace(java.lang.String).final voidTest method forModel.setNamespace(org.eclipse.rdf4j.model.Namespace).final voidTest method forModel.setNamespace(org.eclipse.rdf4j.model.Namespace).final voidTest method forModel.setNamespace(java.lang.String, java.lang.String).
-
Constructor Details
-
ModelNamespacesTest
public ModelNamespacesTest()
-
-
Method Details
-
getModelImplementation
Implementing tests must return a new, empty, Model for each call to this method.- Returns:
- A new empty implementation of
Modelthat implements the namespace related methods,NamespaceAware.getNamespace(String),NamespaceAware.getNamespaces(),Model.setNamespace(Namespace),Model.setNamespace(String, String), andModel.removeNamespace(String).
-
setUp
@BeforeEach public void setUp() -
tearDown
- Throws:
Exception
-
testGetNamespacesEmpty
@Test public final void testGetNamespacesEmpty()Test method forNamespaceAware.getNamespaces(). -
testGetNamespacesSingle
@Test public final void testGetNamespacesSingle()Test method forNamespaceAware.getNamespaces(). -
testGetNamespacesMultiple
@Test public final void testGetNamespacesMultiple()Test method forNamespaceAware.getNamespaces(). -
testGetNamespaceEmpty
@Test public final void testGetNamespaceEmpty()Test method forNamespaceAware.getNamespace(java.lang.String). -
testGetNamespaceSingle
@Test public final void testGetNamespaceSingle()Test method forNamespaceAware.getNamespace(java.lang.String). -
testGetNamespaceMultiple
@Test public final void testGetNamespaceMultiple()Test method forNamespaceAware.getNamespace(java.lang.String). -
testSetNamespaceSamePrefix
@Test public final void testSetNamespaceSamePrefix()Test method forModel.setNamespace(java.lang.String, java.lang.String). -
testSetNamespaceNamespace
@Test public final void testSetNamespaceNamespace()Test method forModel.setNamespace(org.eclipse.rdf4j.model.Namespace). -
testSetNamespaceNamespaceSamePrefix
@Test public final void testSetNamespaceNamespaceSamePrefix()Test method forModel.setNamespace(org.eclipse.rdf4j.model.Namespace). -
testRemoveNamespaceEmpty
@Test public final void testRemoveNamespaceEmpty()Test method forModel.removeNamespace(java.lang.String). -
testRemoveNamespaceSingle
@Test public final void testRemoveNamespaceSingle()Test method forModel.removeNamespace(java.lang.String). -
testRemoveNamespaceMultiple
@Test public final void testRemoveNamespaceMultiple()Test method forModel.removeNamespace(java.lang.String).
-