Class SPARQLQueryComplianceTest
java.lang.Object
org.eclipse.rdf4j.testsuite.query.parser.sparql.manifest.SPARQLComplianceTest
org.eclipse.rdf4j.testsuite.query.parser.sparql.manifest.SPARQLQueryComplianceTest
- Direct Known Subclasses:
GeoSPARQLManifestTest, SPARQL10QueryComplianceTest, SPARQL11QueryComplianceTest, SPARQL12QueryComplianceTest
Base functionality for SPARQL query compliance test suites .
- Author:
- Jeen Broekstra
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassprotected classNested classes/interfaces inherited from class SPARQLComplianceTest
SPARQLComplianceTest.DynamicSparqlComplianceTestModifier and TypeClassDescriptionprotected class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCollection<org.junit.jupiter.api.DynamicTest> getTestData(String manifestResource) Collection<org.junit.jupiter.api.DynamicTest> getTestData(String manifestResource, boolean approvedOnly) protected abstract Repositoryprotected voidtestParameterListener(String displayName, String testURI, String name, String queryFileURL, String resultFileURL, Dataset dataset, boolean ordered, boolean laxCardinality) This can be overridden in order to read one or more of the test parameters.abstract Collection<org.junit.jupiter.api.DynamicTest> tests()Methods inherited from class SPARQLComplianceTest
addIgnoredTest, deleteDataDir, deleteDataDirAfterShutdown, getIgnoredTests, includeSubManifest, printBindingSet, setIgnoredTests, shouldIgnoredTest, shutDownAndDeleteDataDirModifier and TypeMethodDescriptionprotected voidaddIgnoredTest(String ignoredTest) protected voiddeleteDataDir(File dataDir) protected booleanprotected static booleanincludeSubManifest(String subManifestFile, List<String> excludedSubdirs) Verifies if the selected subManifest occurs in the supplied list of excluded subdirs.protected static final voidprintBindingSet(BindingSet bs, StringBuilder appendable) protected voidsetIgnoredTests(List<String> ignoredTests) protected booleanshouldIgnoredTest(String ignoredTest) protected voidshutDownAndDeleteDataDir(Repository repository)
-
Constructor Details
-
SPARQLQueryComplianceTest
public SPARQLQueryComplianceTest() -
SPARQLQueryComplianceTest
-
-
Method Details
-
newRepository
- Throws:
Exception
-
testParameterListener
protected void testParameterListener(String displayName, String testURI, String name, String queryFileURL, String resultFileURL, Dataset dataset, boolean ordered, boolean laxCardinality) This can be overridden in order to read one or more of the test parameters.- Parameters:
displayName-testURI-name-queryFileURL-resultFileURL-dataset-ordered-laxCardinality-
-
tests
-
getTestData
-
getTestData
public Collection<org.junit.jupiter.api.DynamicTest> getTestData(String manifestResource, boolean approvedOnly)
-