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, toString
protected 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.TestCase
Exception
protected org.openrdf.repository.Repository createRepository() throws Exception
Exception
protected abstract org.openrdf.repository.Repository newRepository() throws Exception
Exception
protected void tearDown() throws Exception
tearDown
in class junit.framework.TestCase
Exception
protected void runTest() throws Exception
runTest
in class junit.framework.TestCase
Exception
protected void compareTupleQueryResults(org.openrdf.query.TupleQueryResult queryResult, org.openrdf.query.TupleQueryResult expectedResult) throws Exception
Exception
protected void compareGraphs(Set<org.openrdf.model.Statement> queryResult, Set<org.openrdf.model.Statement> expectedResult) throws Exception
Exception
protected void uploadDataset(org.openrdf.query.Dataset dataset) throws Exception
Exception
protected void upload(org.openrdf.model.URI graphURI, org.openrdf.model.Resource context) throws Exception
Exception
protected final String readQueryString() throws IOException
IOException
protected final org.openrdf.query.TupleQueryResult readExpectedTupleQueryResult() throws Exception
Exception
protected final boolean readExpectedBooleanQueryResult() throws Exception
Exception
protected final Set<org.openrdf.model.Statement> readExpectedGraphQueryResult() throws Exception
Exception
public static junit.framework.TestSuite suite(String manifestFileURL, SPARQLQueryTest.Factory factory) throws Exception
Exception
public static junit.framework.TestSuite suite(String manifestFileURL, SPARQLQueryTest.Factory factory, boolean approvedOnly) throws Exception
Exception
protected 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.QueryEvaluationException
org.openrdf.repository.RepositoryException
org.openrdf.query.MalformedQueryException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.