Class ModelNamespacesTest
- java.lang.Object
-
- org.eclipse.rdf4j.testsuite.model.ModelNamespacesTest
-
public abstract class ModelNamespacesTest extends Object
An abstract test class to test the handling of namespaces byModelimplementations.- Author:
- Peter Ansell p_ansell@yahoo.com
-
-
Constructor Summary
Constructors Constructor Description ModelNamespacesTest()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract org.eclipse.rdf4j.model.ModelgetModelImplementation()Implementing tests must return a new, empty, Model for each call to this method.voidsetUp()voidtearDown()voidtestGetNamespaceEmpty()Test method forNamespaceAware.getNamespace(java.lang.String).voidtestGetNamespaceMultiple()Test method forNamespaceAware.getNamespace(java.lang.String).voidtestGetNamespacesEmpty()Test method forNamespaceAware.getNamespaces().voidtestGetNamespaceSingle()Test method forNamespaceAware.getNamespace(java.lang.String).voidtestGetNamespacesMultiple()Test method forNamespaceAware.getNamespaces().voidtestGetNamespacesSingle()Test method forNamespaceAware.getNamespaces().voidtestRemoveNamespaceEmpty()Test method forModel.removeNamespace(java.lang.String).voidtestRemoveNamespaceMultiple()Test method forModel.removeNamespace(java.lang.String).voidtestRemoveNamespaceSingle()Test method forModel.removeNamespace(java.lang.String).voidtestSetNamespaceNamespace()Test method forModel.setNamespace(org.eclipse.rdf4j.model.Namespace).voidtestSetNamespaceNamespaceSamePrefix()Test method forModel.setNamespace(org.eclipse.rdf4j.model.Namespace).voidtestSetNamespaceSamePrefix()Test method forModel.setNamespace(java.lang.String, java.lang.String).
-
-
-
Method Detail
-
getModelImplementation
protected abstract org.eclipse.rdf4j.model.Model 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()
-
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).
-
-