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