public abstract class AbstractRuleTestCase extends AbstractInferenceEngineTestCase
AbstractTestCase.StatementVerifier
TestCase2.MyProperties, TestCase2.RandomType
NULL
_randomType, log
Constructor and Description |
---|
AbstractRuleTestCase() |
AbstractRuleTestCase(String name) |
Modifier and Type | Method and Description |
---|---|
protected void |
applyRule(AbstractTripleStore db,
IRule rule,
IElementFilter<ISPO> filter,
long expectedSolutionCount,
long expectedMutationCount)
Applies the rule, copies the new entailments into the store and checks
the expected #of inferences computed and new statements copied into the
store.
|
protected void |
applyRule(AbstractTripleStore db,
IRule rule,
long expectedSolutionCount,
long expectedMutationCount) |
protected void |
assertSameSolutionsAnyOrder(IChunkedOrderedIterator<ISolution> itr,
IBindingSet[] expected)
Verifies the the iterator visits
ISolution s have the expected
IBindingSet s when those bindings may occur in any order. |
getValue
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 AbstractRuleTestCase()
public AbstractRuleTestCase(String name)
name
- protected void applyRule(AbstractTripleStore db, IRule rule, long expectedSolutionCount, long expectedMutationCount) throws Exception
Exception
protected void applyRule(AbstractTripleStore db, IRule rule, IElementFilter<ISPO> filter, long expectedSolutionCount, long expectedMutationCount) throws Exception
Invoke as applyRule( store.{rule}, ..., ... )
rule
- The rule, which must be one of those found on the triple store
or otherwise configured so as to run with the triple store
instance.expectedSolutionCount
- The #of entailments that should be computed by the rule
(tested during Query) or -1
if the #of
solutions that will be computed is not known.expectedMutationCount
- The #of new elements that should have been inserted into the
db by the rule.Exception
protected void assertSameSolutionsAnyOrder(IChunkedOrderedIterator<ISolution> itr, IBindingSet[] expected)
ISolution
s have the expected
IBindingSet
s when those bindings may occur in any order.itr
- The iterator.expected
- The expected IBindingSet
s.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.