Class SPARQLQueryTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.eclipse.rdf4j.testsuite.query.parser.sparql.manifest.SPARQLQueryTest
- All Implemented Interfaces:
junit.framework.Test
Deprecated.
A SPARQL query test suite, created by reading in a W3C working-group style manifest.
- Author:
- Jeen Broekstra
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected final boolean
Deprecated.protected Repository
Deprecated.protected final Dataset
Deprecated.protected final String[]
Deprecated.protected final boolean
Deprecated.protected final org.slf4j.Logger
Deprecated.protected final String
Deprecated.protected final String
Deprecated.protected final String
Deprecated. -
Constructor Summary
ConstructorDescriptionSPARQLQueryTest
(String testURI, String name, String queryFileURL, String resultFileURL, Dataset dataSet, boolean laxCardinality, boolean checkOrder, String... ignoredTests) Deprecated.SPARQLQueryTest
(String testURI, String name, String queryFileURL, String resultFileURL, Dataset dataSet, boolean laxCardinality, String... ignoredTests) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
compareGraphs
(Set<Statement> queryResult, Set<Statement> expectedResult) Deprecated.protected final void
compareTupleQueryResults
(TupleQueryResult queryResult, TupleQueryResult expectedResult) Deprecated.protected final Repository
Deprecated.protected static String
getManifestName
(Repository manifestRep, RepositoryConnection con, String manifestFileURL) Deprecated.protected abstract Repository
Deprecated.protected final void
printBindingSet
(BindingSet bs, StringBuilder appendable) Deprecated.protected final boolean
Deprecated.Deprecated.protected final TupleQueryResult
Deprecated.protected final String
Deprecated.protected void
runTest()
Deprecated.protected void
setUp()
Deprecated.static junit.framework.TestSuite
suite
(String manifestFileURL, SPARQLQueryTest.Factory factory) Deprecated.static junit.framework.TestSuite
suite
(String manifestFileURL, SPARQLQueryTest.Factory factory, boolean approvedOnly) Deprecated.protected void
tearDown()
Deprecated.protected final void
uploadDataset
(Dataset dataset) Deprecated.Methods inherited from class junit.framework.TestCase
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, setName, toString
-
Field Details
-
logger
protected final org.slf4j.Logger loggerDeprecated. -
testURI
Deprecated. -
queryFileURL
Deprecated. -
resultFileURL
Deprecated. -
dataset
Deprecated. -
laxCardinality
protected final boolean laxCardinalityDeprecated. -
checkOrder
protected final boolean checkOrderDeprecated. -
ignoredTests
Deprecated. -
dataRep
Deprecated.
-
-
Constructor Details
-
SPARQLQueryTest
public SPARQLQueryTest(String testURI, String name, String queryFileURL, String resultFileURL, Dataset dataSet, boolean laxCardinality, String... ignoredTests) Deprecated. -
SPARQLQueryTest
public SPARQLQueryTest(String testURI, String name, String queryFileURL, String resultFileURL, Dataset dataSet, boolean laxCardinality, boolean checkOrder, String... ignoredTests) Deprecated.
-
-
Method Details
-
setUp
Deprecated.- Overrides:
setUp
in classjunit.framework.TestCase
- Throws:
Exception
-
createRepository
Deprecated.- Throws:
Exception
-
newRepository
Deprecated.- Throws:
Exception
-
tearDown
Deprecated.- Overrides:
tearDown
in classjunit.framework.TestCase
- Throws:
Exception
-
runTest
Deprecated.- Overrides:
runTest
in classjunit.framework.TestCase
- Throws:
Exception
-
compareTupleQueryResults
protected final void compareTupleQueryResults(TupleQueryResult queryResult, TupleQueryResult expectedResult) throws Exception Deprecated.- Throws:
Exception
-
printBindingSet
Deprecated. -
compareGraphs
protected final void compareGraphs(Set<Statement> queryResult, Set<Statement> expectedResult) throws Exception Deprecated.- Throws:
Exception
-
uploadDataset
Deprecated.- Throws:
Exception
-
readQueryString
Deprecated.- Throws:
IOException
-
readExpectedTupleQueryResult
Deprecated.- Throws:
Exception
-
readExpectedBooleanQueryResult
Deprecated.- Throws:
Exception
-
readExpectedGraphQueryResult
Deprecated.- Throws:
Exception
-
suite
public static junit.framework.TestSuite suite(String manifestFileURL, SPARQLQueryTest.Factory factory) throws Exception Deprecated.- Throws:
Exception
-
suite
public static junit.framework.TestSuite suite(String manifestFileURL, SPARQLQueryTest.Factory factory, boolean approvedOnly) throws Exception Deprecated.- Throws:
Exception
-
getManifestName
protected static String getManifestName(Repository manifestRep, RepositoryConnection con, String manifestFileURL) throws QueryEvaluationException, RepositoryException, MalformedQueryException Deprecated.
-
SPARQL11QueryComplianceTest
instead.