Package org.eclipse.rdf4j.sail
Class RDFStoreTest
- java.lang.Object
-
- org.eclipse.rdf4j.sail.RDFStoreTest
-
- Direct Known Subclasses:
RDFNotifyingStoreTest
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 Summary
Fields Modifier and Type Field Description protected SailConnection
con
protected IRI
context1
protected IRI
context2
protected IRI
guernica
protected IRI
nightwatch
protected IRI
painter
protected IRI
painting
protected IRI
paints
protected IRI
picasso
protected IRI
rembrandt
protected Sail
sail
org.junit.rules.Timeout
to
Timeout all individual tests after 1 minute.protected ValueFactory
vf
-
Constructor Summary
Constructors Constructor Description RDFStoreTest()
-
Method Summary
-
-
-
Field Detail
-
to
public org.junit.rules.Timeout to
Timeout all individual tests after 1 minute.
-
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
-
con
protected SailConnection con
-
vf
protected ValueFactory vf
-
-
Method Detail
-
createSail
protected abstract Sail createSail()
Gets an instance of the Sail that should be tested.- Returns:
- a Sail.
-
testReallyLongLiteralRoundTrip
public void testReallyLongLiteralRoundTrip() throws Exception
- Throws:
Exception
-
testClose
public void testClose()
-
testStatementSerialization
public void testStatementSerialization() throws Exception
- Throws:
Exception
-
testNullNamespaceDisallowed
public void testNullNamespaceDisallowed() throws Exception
- Throws:
Exception
-
testDuplicateCount
public void testDuplicateCount()
-
testDuplicateGetStatement
public void testDuplicateGetStatement()
-
testDuplicateGetStatementAfterCommit
public void testDuplicateGetStatementAfterCommit()
-
testDuplicateCountAfterComit
public void testDuplicateCountAfterComit()
-
testDuplicateCountMultipleTimes
public void testDuplicateCountMultipleTimes()
-
countContext1Elements
protected int countContext1Elements() throws Exception, SailException
- Throws:
Exception
SailException
-
countAllElements
protected int countAllElements() throws Exception, SailException
- Throws:
Exception
SailException
-
-