public class BigdataSparqlTest extends SPARQLQueryTest
Journal
without full read/write transaction support.SPARQLQueryTest.Factory
Modifier and Type | Field and Description |
---|---|
static Collection<String> |
badTests
The tests test things that are no longer in the spec or that use an
illegal syntax.
|
protected static Collection<String> |
cannotInlineTests
We cannot use inlining for these test because we do normalization on
numeric values and these tests test for syntactic differences, i.e.
|
static Collection<String> |
knownBadTests
These tests fail but should not.
|
protected static Collection<String> |
testURIs
An array of URIs for tests to be run.
|
protected static Collection<String> |
unicodeStrengthIdentical
The following tests require Unicode configuration for identical
comparisons.
|
checkOrder, dataRep, dataset, laxCardinality, logger, queryFileURL, resultFileURL, testURI
Constructor and Description |
---|
BigdataSparqlTest(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,
BigdataSailRepositoryConnection cxn) |
protected org.openrdf.repository.Repository |
createRepository() |
protected static junit.framework.TestSuite |
filterOutTests(junit.framework.TestSuite suite1,
Collection<String> testURIs) |
protected static junit.framework.TestSuite |
filterOutTests(junit.framework.TestSuite suite1,
String name)
Hack filters out the "dataset" tests.
|
protected Properties |
getProperties()
Note: This method may be overridden in order to run the test suite
against other variations of the bigdata backend.
|
protected BigdataSailRepositoryConnection |
getQueryConnection(org.openrdf.repository.Repository dataRep)
Overridden to use
BigdataSail.getReadOnlyConnection() as a
workaround to the test harness which invokes
BigdataSail.getConnection() multiple times from within the same
thread. |
String |
getQueryString() |
org.openrdf.repository.Repository |
getRepository() |
protected static SPARQLQueryTest |
getSingleTest(junit.framework.TestSuite suite,
String testURI)
Return the sole test in the suite associated with the specified testURI.
|
protected org.openrdf.repository.Repository |
newRepository() |
protected String |
readInputData(org.openrdf.query.Dataset dataset) |
protected void |
runTest() |
void |
setUp() |
static junit.framework.Test |
suite()
Skip the dataset tests for now until we can figure out what is wrong with
them.
|
static junit.framework.Test |
suite(boolean hideDatasetTests) |
static junit.framework.TestSuite |
suiteLTSWithPipelineJoins()
Return the test suite.
|
void |
tearDown()
Overridden to destroy the backend database and its files on the disk.
|
protected void |
tearDownBackend(IIndexManager backend) |
protected void |
uploadDataset(org.openrdf.query.Dataset dataset) |
compareTupleQueryResults, getManifestName, readExpectedBooleanQueryResult, readExpectedGraphQueryResult, readExpectedTupleQueryResult, readQueryString, suite, suite, upload
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 static final Collection<String> cannotInlineTests
public static final Collection<String> badTests
public static final Collection<String> knownBadTests
BigdataStatics.runKnownBadTests
. This is done as a convenience to
'green' up CI.protected static final Collection<String> unicodeStrengthIdentical
protected static final Collection<String> testURIs
public static junit.framework.Test suite() throws Exception
Exception
public static junit.framework.Test suite(boolean hideDatasetTests) throws Exception
Exception
protected static junit.framework.TestSuite filterOutTests(junit.framework.TestSuite suite1, String name)
suite1
- The test suite.protected static junit.framework.TestSuite filterOutTests(junit.framework.TestSuite suite1, Collection<String> testURIs)
protected static SPARQLQueryTest getSingleTest(junit.framework.TestSuite suite, String testURI) throws RuntimeException
suite
- The test suite.testURI
- The test URI (these are defined by the DAWG).RuntimeException
- if there is no test in the suite which is associated with
that testURI.public static junit.framework.TestSuite suiteLTSWithPipelineJoins() throws Exception
Exception
public void tearDown() throws Exception
tearDown
in class SPARQLQueryTest
Exception
protected Properties getProperties()
#suiteLTSWithNestedSubquery()
,
suiteLTSWithPipelineJoins()
protected org.openrdf.repository.Repository newRepository() throws org.openrdf.repository.RepositoryException
newRepository
in class SPARQLQueryTest
org.openrdf.repository.RepositoryException
protected void tearDownBackend(IIndexManager backend)
protected org.openrdf.repository.Repository createRepository() throws Exception
createRepository
in class SPARQLQueryTest
Exception
public void setUp() throws Exception
setUp
in class SPARQLQueryTest
Exception
public org.openrdf.repository.Repository getRepository()
protected String readInputData(org.openrdf.query.Dataset dataset) throws Exception
Exception
protected void runTest() throws Exception
runTest
in class SPARQLQueryTest
Exception
protected BigdataSailRepositoryConnection getQueryConnection(org.openrdf.repository.Repository dataRep) throws Exception
BigdataSail.getReadOnlyConnection()
as a
workaround to the test harness which invokes
BigdataSail.getConnection()
multiple times from within the same
thread. When full transactions are not enabled, that will delegate to
BigdataSail.getUnisolatedConnection()
. Only one unisolated
connection is permitted at a time. While different threads will block to
await the unisolated connection, that method will throw an exception if
there is an attempt by a single thread to obtain more than one instance
of the unisolated connection (since that operation would otherwise
deadlock).Exception
protected void uploadDataset(org.openrdf.query.Dataset dataset) throws Exception
uploadDataset
in class SPARQLQueryTest
Exception
protected final void compareTupleQueryResults(org.openrdf.query.TupleQueryResult queryResult, org.openrdf.query.TupleQueryResult expectedResult, BigdataSailRepositoryConnection cxn) throws Exception
Exception
protected final void compareGraphs(Set<org.openrdf.model.Statement> queryResult, Set<org.openrdf.model.Statement> expectedResult) throws Exception
compareGraphs
in class SPARQLQueryTest
Exception
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.