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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
Deprecated.protected Repository
Deprecated.protected Dataset
Deprecated.protected String[]
Deprecated.protected boolean
Deprecated.protected org.slf4j.Logger
Deprecated.protected String
Deprecated.protected String
Deprecated.protected String
Deprecated. -
Constructor Summary
ConstructorsConstructorDescriptionSPARQLQueryTest(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 void
compareGraphs(Set<Statement> queryResult, Set<Statement> expectedResult)
Deprecated.protected void
compareTupleQueryResults(TupleQueryResult queryResult, TupleQueryResult expectedResult)
Deprecated.protected Repository
Deprecated.protected static String
getManifestName(Repository manifestRep, RepositoryConnection con, String manifestFileURL)
Deprecated.protected abstract Repository
Deprecated.protected void
printBindingSet(BindingSet bs, StringBuilder appendable)
Deprecated.protected boolean
Deprecated.Deprecated.protected TupleQueryResult
Deprecated.protected 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 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 ExceptionDeprecated.- Throws:
Exception
-
printBindingSet
Deprecated. -
compareGraphs
protected final void compareGraphs(Set<Statement> queryResult, Set<Statement> expectedResult) throws ExceptionDeprecated.- 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 ExceptionDeprecated.- Throws:
Exception
-
suite
public static junit.framework.TestSuite suite(String manifestFileURL, SPARQLQueryTest.Factory factory, boolean approvedOnly) throws ExceptionDeprecated.- Throws:
Exception
-
getManifestName
protected static String getManifestName(Repository manifestRep, RepositoryConnection con, String manifestFileURL) throws QueryEvaluationException, RepositoryException, MalformedQueryExceptionDeprecated.
-
SPARQL11QueryComplianceTest
instead.