public final class TestUtils extends Object
TestUtils class.
| Modifier and Type | Method and Description |
|---|---|
static String |
generateTestURI(String sourcePrefix,
Pattern pattern,
Collection<Binding> bindings,
String generatorURI)
generateTestURI.
|
static Collection<Binding> |
getBindingsFromTestCase(org.aksw.jena_sparql_api.core.QueryExecutionFactory qef,
String testURI,
Pattern pattern)
getBindingsFromTestCase.
|
static Collection<String> |
getReferencesFromTestCase(org.aksw.jena_sparql_api.core.QueryExecutionFactory qef,
String testURI)
getReferencesFromTestCase.
|
static ManualTestCase |
instantiateSingleManualTestFromModel(org.aksw.jena_sparql_api.core.QueryExecutionFactory qef,
String testURI)
instantiateSingleManualTestFromModel.
|
static PatternBasedTestCase |
instantiateSinglePatternTestFromModel(org.aksw.jena_sparql_api.core.QueryExecutionFactory qef,
String testURI)
instantiateSinglePatternTestFromModel.
|
static Collection<TestCase> |
instantiateTestsFromModel(com.hp.hpl.jena.rdf.model.Model model)
instantiateTestsFromModel.
|
static Collection<TestCase> |
instantiateTestsFromModel(com.hp.hpl.jena.rdf.model.Model model,
boolean strict)
instantiateTestsFromModel.
|
static void |
writeTestsToFile(Collection<TestCase> tests,
RDFWriter testCache)
writeTestsToFile.
|
public static Collection<TestCase> instantiateTestsFromModel(com.hp.hpl.jena.rdf.model.Model model)
instantiateTestsFromModel.
model - a Model object.Collection object.public static Collection<TestCase> instantiateTestsFromModel(com.hp.hpl.jena.rdf.model.Model model, boolean strict) throws TestCaseInstantiationException
instantiateTestsFromModel.
model - a Model object.strict - a boolean.Collection object.TestCaseInstantiationException - if any.public static ManualTestCase instantiateSingleManualTestFromModel(org.aksw.jena_sparql_api.core.QueryExecutionFactory qef, String testURI) throws TestCaseInstantiationException
instantiateSingleManualTestFromModel.
qef - a QueryExecutionFactory object.testURI - a String object.ManualTestCase object.TestCaseInstantiationException - if any.public static PatternBasedTestCase instantiateSinglePatternTestFromModel(org.aksw.jena_sparql_api.core.QueryExecutionFactory qef, String testURI) throws TestCaseInstantiationException
instantiateSinglePatternTestFromModel.
qef - a QueryExecutionFactory object.testURI - a String object.PatternBasedTestCase object.TestCaseInstantiationException - if any.public static void writeTestsToFile(Collection<TestCase> tests, RDFWriter testCache)
writeTestsToFile.
tests - a Collection object.testCache - a RDFWriter object.public static Collection<String> getReferencesFromTestCase(org.aksw.jena_sparql_api.core.QueryExecutionFactory qef, String testURI)
getReferencesFromTestCase.
qef - a QueryExecutionFactory object.testURI - a String object.Collection object.public static Collection<Binding> getBindingsFromTestCase(org.aksw.jena_sparql_api.core.QueryExecutionFactory qef, String testURI, Pattern pattern)
getBindingsFromTestCase.
qef - a QueryExecutionFactory object.testURI - a String object.pattern - a Pattern object.Collection object.public static String generateTestURI(String sourcePrefix, Pattern pattern, Collection<Binding> bindings, String generatorURI)
generateTestURI.
sourcePrefix - a String object.pattern - a Pattern object.bindings - a Collection object.generatorURI - a String object.String object.Copyright © 2015. All rights reserved.