Class AbstractComplianceTest
java.lang.Object
org.eclipse.rdf4j.testsuite.sparql.AbstractComplianceTest
- Direct Known Subclasses:
AggregateTest,ArbitraryLengthPathTest,BasicTest,BindTest,BuiltinFunctionTest,ConstructTest,DefaultGraphTest,DescribeTest,ExistsTest,FilterScopeTest,GroupByTest,InTest,MinusTest,OptionalTest,OrderByTest,PropertyPathTest,SubselectTest,UnionTest,ValuesTest
Abstract base class for tests included in the
RepositorySPARQLComplianceTestSuite.- Author:
- Jeen Broekstra
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.slf4j.Loggerprotected final Supplier<Repository> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected StringGet a set of useful namespace prefix declarations.protected voidloadTestData(String dataFile, RepositoryConnection conn, Resource... contexts) protected org.junit.jupiter.api.DynamicTestmakeTest(String name, org.junit.jupiter.api.function.ThrowingConsumer<RepositoryConnection> x) protected RepositoryConnectionprotected Repository
-
Field Details
-
logger
protected final org.slf4j.Logger logger -
repo
-
-
Constructor Details
-
AbstractComplianceTest
-
-
Method Details
-
makeTest
protected org.junit.jupiter.api.DynamicTest makeTest(String name, org.junit.jupiter.api.function.ThrowingConsumer<RepositoryConnection> x) -
openRepository
-
openConnection
-
closeRepository
-
loadTestData
protected void loadTestData(String dataFile, RepositoryConnection conn, Resource... contexts) throws RDFParseException, RepositoryException, IOException -
getNamespaceDeclarations
Get a set of useful namespace prefix declarations.- Returns:
- namespace prefix declarations for dc, foaf and ex.
-