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(since="3.3.0") public abstract class SPARQLQueryTest extends junit.framework.TestCase
Deprecated.UseSPARQL11QueryComplianceTestinstead.A SPARQL query test suite, created by reading in a W3C working-group style manifest.- Author:
- Jeen Broekstra
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSPARQLQueryTest.FactoryDeprecated.
-
Field Summary
Fields Modifier and Type Field Description protected booleancheckOrderDeprecated.protected RepositorydataRepDeprecated.protected DatasetdatasetDeprecated.protected String[]ignoredTestsDeprecated.protected booleanlaxCardinalityDeprecated.protected org.slf4j.LoggerloggerDeprecated.protected StringqueryFileURLDeprecated.protected StringresultFileURLDeprecated.protected StringtestURIDeprecated.
-
Constructor Summary
Constructors Constructor Description SPARQLQueryTest(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
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidcompareGraphs(Set<Statement> queryResult, Set<Statement> expectedResult)Deprecated.protected voidcompareTupleQueryResults(TupleQueryResult queryResult, TupleQueryResult expectedResult)Deprecated.protected RepositorycreateRepository()Deprecated.protected static StringgetManifestName(Repository manifestRep, RepositoryConnection con, String manifestFileURL)Deprecated.protected abstract RepositorynewRepository()Deprecated.protected voidprintBindingSet(BindingSet bs, StringBuilder appendable)Deprecated.protected booleanreadExpectedBooleanQueryResult()Deprecated.protected Set<Statement>readExpectedGraphQueryResult()Deprecated.protected TupleQueryResultreadExpectedTupleQueryResult()Deprecated.protected StringreadQueryString()Deprecated.protected voidrunTest()Deprecated.protected voidsetUp()Deprecated.static junit.framework.TestSuitesuite(String manifestFileURL, SPARQLQueryTest.Factory factory)Deprecated.static junit.framework.TestSuitesuite(String manifestFileURL, SPARQLQueryTest.Factory factory, boolean approvedOnly)Deprecated.protected voidtearDown()Deprecated.protected voiduploadDataset(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 Detail
-
logger
protected final org.slf4j.Logger logger
Deprecated.
-
testURI
protected final String testURI
Deprecated.
-
queryFileURL
protected final String queryFileURL
Deprecated.
-
resultFileURL
protected final String resultFileURL
Deprecated.
-
dataset
protected final Dataset dataset
Deprecated.
-
laxCardinality
protected final boolean laxCardinality
Deprecated.
-
checkOrder
protected final boolean checkOrder
Deprecated.
-
ignoredTests
protected final String[] ignoredTests
Deprecated.
-
dataRep
protected Repository dataRep
Deprecated.
-
-
Method Detail
-
setUp
protected void setUp() throws ExceptionDeprecated.- Overrides:
setUpin classjunit.framework.TestCase- Throws:
Exception
-
createRepository
protected final Repository createRepository()
Deprecated.
-
newRepository
protected abstract Repository newRepository()
Deprecated.
-
tearDown
protected void tearDown()
Deprecated.- Overrides:
tearDownin classjunit.framework.TestCase
-
runTest
protected void runTest() throws ExceptionDeprecated.- Overrides:
runTestin classjunit.framework.TestCase- Throws:
Exception
-
compareTupleQueryResults
protected final void compareTupleQueryResults(TupleQueryResult queryResult, TupleQueryResult expectedResult)
Deprecated.
-
printBindingSet
protected final void printBindingSet(BindingSet bs, StringBuilder appendable)
Deprecated.
-
compareGraphs
protected final void compareGraphs(Set<Statement> queryResult, Set<Statement> expectedResult)
Deprecated.
-
uploadDataset
protected final void uploadDataset(Dataset dataset) throws Exception
Deprecated.- Throws:
Exception
-
readQueryString
protected final String readQueryString() throws IOException
Deprecated.- Throws:
IOException
-
readExpectedTupleQueryResult
protected final TupleQueryResult readExpectedTupleQueryResult() throws Exception
Deprecated.- Throws:
Exception
-
readExpectedBooleanQueryResult
protected final boolean readExpectedBooleanQueryResult() throws ExceptionDeprecated.- Throws:
Exception
-
readExpectedGraphQueryResult
protected final Set<Statement> readExpectedGraphQueryResult() throws Exception
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.
-
-