Class RepositorySPARQLComplianceTestSuite
java.lang.Object
org.eclipse.rdf4j.testsuite.sparql.RepositorySPARQLComplianceTestSuite
A suite of custom compliance tests on SPARQL query functionality for RDF4J Repositories.
To use this test suite, extend the abstract suite class, making sure that the correct RepositoryFactory
gets
set on initialization, and torn down after. For example, to run the suite against an RDF4J Memory Store:
@BeforeClass
public static void setUpFactory() throws Exception {
setRepositoryFactory(new SailRepositoryFactory() {
@Override
public RepositoryImplConfig getConfig() {
return new SailRepositoryConfig(new MemoryStoreFactory().getConfig());
}
});
}
@AfterClass
public static void tearDownFactory() throws Exception {
setRepositoryFactory(null);
}
- Author:
- Jeen Broekstra
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Repository
getEmptyInitializedRepository
(Class<?> caller) static void
setRepositoryFactory
(RepositoryFactory factory) static void
-
Constructor Details
-
RepositorySPARQLComplianceTestSuite
public RepositorySPARQLComplianceTestSuite()
-
-
Method Details
-
setUpClass
- Throws:
Exception
-
setRepositoryFactory
- Throws:
IOException
-
getEmptyInitializedRepository
public static Repository getEmptyInitializedRepository(Class<?> caller) throws RDF4JException, IOException - Throws:
RDF4JException
IOException
-