public abstract class AbstractRIOTestCase extends AbstractTripleStoreTestCase
AbstractTestCase.StatementVerifier
TestCase2.MyProperties, TestCase2.RandomType
NULL
_randomType, log
Constructor and Description |
---|
AbstractRIOTestCase() |
AbstractRIOTestCase(String name) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doLoad(AbstractTripleStore store,
String resource,
boolean parallel)
Implementation must load the data.
|
protected void |
doLoad(AbstractTripleStore store,
String resource,
boolean parallel,
IStatementBufferFactory<BigdataStatement> factory)
Load the classpath resource or file / directory.
|
protected void |
doLoadAndVerifyTest(String resource,
boolean parallel)
Test loads an RDF/XML resource into a database and then verifies by
re-parse that all expected statements were made persistent in the
database.
|
protected void |
doVerify(AbstractTripleStore store,
String resource,
boolean parallel)
Verify the KB contains all explicit statements read from the resource.
|
protected List<Callable<Void>> |
getLoadTasks(String resource,
IStatementBufferFactory<BigdataStatement> factory)
Returns a list containing either a single
LoadTask for a
classpath resource or a file or a set of LoadTask for the files
in a directory. |
protected List<Callable<Void>> |
getVerifyTasks(String resource,
AbstractTripleStore store)
Return a list of tasks which will verify the statements contained in the
specified classpath resource, file, or directory (recursive) against the
KB.
|
getDelegate, getOurDelegate, getProperties, getStore, getStore, reopenStore, setDelegate, setUp, tearDown
assertEquals, assertEquals, assertEquals, assertEquals, assertLexiconIndicesConsistent, assertSameSPOs, assertSameSPOs, assertSameSPOsAnyOrder, assertSameSPOsAnyOrder, assertSameStatements, assertSameStatements, assertStatementIndicesConsistent, checkIfProxy, recursiveDelete, setUp, tearDown
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEqualsWithinUlps, assertSameArray, assertSameArray, assertSameBigDecimal, assertSameBigDecimal, assertSameBigInteger, assertSameBigInteger, assertSameIterator, assertSameIterator, assertSameIteratorAnyOrder, assertSameIteratorAnyOrder, assertSameValue, assertSameValue, assertZeroUlps, assertZeroUlps, fail, getInnerCause, getNormalInt, getProjectBuildPath, getRandomObject, getRandomObject, getRandomOrder, getRandomString, getTestInputStream, getTestResource, getTestResource, getUlps, getUlps, isDEBUG, isDEBUG, isINFO, isINFO, isInnerCause, logProperties
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, runTest, setName, toString
public AbstractRIOTestCase()
public AbstractRIOTestCase(String name)
name
- protected void doLoadAndVerifyTest(String resource, boolean parallel) throws Exception
resource
- Exception
protected abstract void doLoad(AbstractTripleStore store, String resource, boolean parallel) throws Exception
IStatementBufferFactory
and then invoke
doLoad(AbstractTripleStore, String, boolean, IStatementBufferFactory)
store
- resource
- parallel
- when true
multiple source files will be loaded
and verified in parallel.Exception
protected void doLoad(AbstractTripleStore store, String resource, boolean parallel, IStatementBufferFactory<BigdataStatement> factory) throws Exception
Note: Normally we disable closure for this test, but that is not critical. If you compute the closure of the data set then there will simply be additional statements whose self-consistency among the statement indices will be verified, but it will not verify the correctness of the closure.
store
- The KB into which the data will be loaded.resource
- A classpath resource, a file, or a directory (processed
recursively). Hidden files are NOT loaded in order to skip
.svn and CVS directories.factory
- The factory under test.Exception
protected List<Callable<Void>> getLoadTasks(String resource, IStatementBufferFactory<BigdataStatement> factory)
LoadTask
for a
classpath resource or a file or a set of LoadTask
for the files
in a directory.resource
- factory
- protected void doVerify(AbstractTripleStore store, String resource, boolean parallel)
store
- The KB.resource
- A classpath resource, file, or directory (processed
recursively).parallel
- When true
, multiple source files will be
verified in parallel.protected List<Callable<Void>> getVerifyTasks(String resource, AbstractTripleStore store)
resource
- store
- Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.