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 Repository |
dataRep |
protected Dataset |
dataset |
protected String[] |
ignoredTests |
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,
Dataset dataSet,
boolean laxCardinality,
boolean checkOrder,
String... ignoredTests) |
SPARQLQueryTest(String testURI,
String name,
String queryFileURL,
String resultFileURL,
Dataset dataSet,
boolean laxCardinality,
String... ignoredTests) |
Modifier and Type | Method and Description |
---|---|
protected void |
compareGraphs(Set<Statement> queryResult,
Set<Statement> expectedResult) |
protected void |
compareTupleQueryResults(TupleQueryResult queryResult,
TupleQueryResult expectedResult) |
protected Repository |
createRepository() |
protected static String |
getManifestName(Repository manifestRep,
RepositoryConnection con,
String manifestFileURL) |
protected abstract Repository |
newRepository() |
protected void |
printBindingSet(BindingSet bs,
StringBuilder appendable) |
protected boolean |
readExpectedBooleanQueryResult() |
protected Set<Statement> |
readExpectedGraphQueryResult() |
protected 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 |
uploadDataset(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 Dataset dataset
protected final boolean laxCardinality
protected final boolean checkOrder
protected final String[] ignoredTests
protected Repository dataRep
public SPARQLQueryTest(String testURI, String name, String queryFileURL, String resultFileURL, Dataset dataSet, boolean laxCardinality, String... ignoredTests)
protected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
protected final Repository createRepository() throws Exception
Exception
protected abstract 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 final void compareTupleQueryResults(TupleQueryResult queryResult, TupleQueryResult expectedResult) throws Exception
Exception
protected final void printBindingSet(BindingSet bs, StringBuilder appendable)
protected final void compareGraphs(Set<Statement> queryResult, Set<Statement> expectedResult) throws Exception
Exception
protected final void uploadDataset(Dataset dataset) throws Exception
Exception
protected final String readQueryString() throws IOException
IOException
protected final TupleQueryResult readExpectedTupleQueryResult() throws Exception
Exception
protected final boolean readExpectedBooleanQueryResult() throws Exception
Exception
protected final Set<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(Repository manifestRep, RepositoryConnection con, String manifestFileURL) throws QueryEvaluationException, RepositoryException, MalformedQueryException
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.