Class RepositorySPARQLComplianceTestSuite
- java.lang.Object
-
- org.eclipse.rdf4j.testsuite.sparql.RepositorySPARQLComplianceTestSuite
-
@Experimental public abstract class RepositorySPARQLComplianceTestSuite extends Object
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
Constructors Constructor Description RepositorySPARQLComplianceTestSuite()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Repository
getEmptyInitializedRepository(Class<?> caller)
static void
setRepositoryFactory(RepositoryFactory factory)
static void
setUpClass()
static void
tearDownClass()
-
-
-
Method Detail
-
setUpClass
public static void setUpClass()
-
tearDownClass
public static void tearDownClass()
-
setRepositoryFactory
public static void setRepositoryFactory(RepositoryFactory factory) throws IOException
- Throws:
IOException
-
getEmptyInitializedRepository
public static Repository getEmptyInitializedRepository(Class<?> caller) throws RDF4JException, IOException
- Throws:
RDF4JException
IOException
-
-