public abstract class SPARQLQueryTest
extends junit.framework.TestCase
| Modifier and Type | Class and Description |
|---|---|
static interface |
SPARQLQueryTest.Factory |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
checkOrder |
protected org.openrdf.repository.Repository |
dataRep |
protected org.openrdf.query.Dataset |
dataset |
protected boolean |
laxCardinality |
protected org.slf4j.Logger |
logger |
protected String |
queryFileURL |
protected String |
resultFileURL |
protected String |
testURI |
| Constructor and Description |
|---|
SPARQLQueryTest(String testURI,
String name,
String queryFileURL,
String resultFileURL,
org.openrdf.query.Dataset dataSet,
boolean laxCardinality) |
SPARQLQueryTest(String testURI,
String name,
String queryFileURL,
String resultFileURL,
org.openrdf.query.Dataset dataSet,
boolean laxCardinality,
boolean checkOrder) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
compareGraphs(Set<org.openrdf.model.Statement> queryResult,
Set<org.openrdf.model.Statement> expectedResult) |
protected void |
compareTupleQueryResults(org.openrdf.query.TupleQueryResult queryResult,
org.openrdf.query.TupleQueryResult expectedResult) |
protected org.openrdf.repository.Repository |
createRepository() |
protected static String |
getManifestName(org.openrdf.repository.Repository manifestRep,
org.openrdf.repository.RepositoryConnection con,
String manifestFileURL) |
protected abstract org.openrdf.repository.Repository |
newRepository() |
protected boolean |
readExpectedBooleanQueryResult() |
protected Set<org.openrdf.model.Statement> |
readExpectedGraphQueryResult() |
protected org.openrdf.query.TupleQueryResult |
readExpectedTupleQueryResult() |
protected String |
readQueryString() |
protected void |
runTest() |
protected void |
setUp() |
static junit.framework.TestSuite |
suite(String manifestFileURL,
SPARQLQueryTest.Factory factory) |
static junit.framework.TestSuite |
suite(String manifestFileURL,
SPARQLQueryTest.Factory factory,
boolean approvedOnly) |
protected void |
tearDown() |
protected void |
upload(org.openrdf.model.URI graphURI,
org.openrdf.model.Resource context) |
protected void |
uploadDataset(org.openrdf.query.Dataset dataset) |
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, toStringprotected final org.slf4j.Logger logger
protected final String testURI
protected final String queryFileURL
protected final String resultFileURL
protected final org.openrdf.query.Dataset dataset
protected final boolean laxCardinality
protected final boolean checkOrder
protected org.openrdf.repository.Repository dataRep
public SPARQLQueryTest(String testURI, String name, String queryFileURL, String resultFileURL, org.openrdf.query.Dataset dataSet, boolean laxCardinality)
protected void setUp()
throws Exception
setUp in class junit.framework.TestCaseExceptionprotected org.openrdf.repository.Repository createRepository()
throws Exception
Exceptionprotected abstract org.openrdf.repository.Repository newRepository()
throws Exception
Exceptionprotected void tearDown()
throws Exception
tearDown in class junit.framework.TestCaseExceptionprotected void runTest()
throws Exception
runTest in class junit.framework.TestCaseExceptionprotected void compareTupleQueryResults(org.openrdf.query.TupleQueryResult queryResult,
org.openrdf.query.TupleQueryResult expectedResult)
throws Exception
Exceptionprotected void compareGraphs(Set<org.openrdf.model.Statement> queryResult, Set<org.openrdf.model.Statement> expectedResult) throws Exception
Exceptionprotected void uploadDataset(org.openrdf.query.Dataset dataset)
throws Exception
Exceptionprotected void upload(org.openrdf.model.URI graphURI,
org.openrdf.model.Resource context)
throws Exception
Exceptionprotected final String readQueryString() throws IOException
IOExceptionprotected final org.openrdf.query.TupleQueryResult readExpectedTupleQueryResult()
throws Exception
Exceptionprotected final boolean readExpectedBooleanQueryResult()
throws Exception
Exceptionprotected final Set<org.openrdf.model.Statement> readExpectedGraphQueryResult() throws Exception
Exceptionpublic static junit.framework.TestSuite suite(String manifestFileURL, SPARQLQueryTest.Factory factory) throws Exception
Exceptionpublic static junit.framework.TestSuite suite(String manifestFileURL, SPARQLQueryTest.Factory factory, boolean approvedOnly) throws Exception
Exceptionprotected static String getManifestName(org.openrdf.repository.Repository manifestRep, org.openrdf.repository.RepositoryConnection con, String manifestFileURL) throws org.openrdf.query.QueryEvaluationException, org.openrdf.repository.RepositoryException, org.openrdf.query.MalformedQueryException
org.openrdf.query.QueryEvaluationExceptionorg.openrdf.repository.RepositoryExceptionorg.openrdf.query.MalformedQueryExceptionCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.