| test.org.mandarax.reference.MandaraxTestCase test.org.mandarax.reference.TestResultSet
All known Subclasses: test.org.mandarax.reference.TestResultSet6, test.org.mandarax.reference.TestResultSet5, test.org.mandarax.reference.TestResultSet4, test.org.mandarax.reference.TestResultSet1, test.org.mandarax.reference.TestResultSet3, test.org.mandarax.reference.TestResultSet2, test.org.mandarax.reference.TestResultSet7,
TestResultSet | abstract public class TestResultSet extends MandaraxTestCase (Code) | | An abstract test case class to test the result set query interface of the inference engine.
author: Jens Dietrich version: 3.4 <7 March 05> since: 1.7 |
TestResultSet | public TestResultSet(KnowledgeBase aKnowledgeBase, InferenceEngine anInferenceEngine)(Code) | | Constructor.
Parameters: aKnowledgeBase - a new, uninitialized knowledge base that will be used Parameters: anInferenceEngine - the inference engine that will be tested |
feedKnowledgeBase | public void feedKnowledgeBase(KnowledgeBase knowledge)(Code) | | Add facts and rules to the knowledge base.
Parameters: knowledge - org.mandarax.kernel.KnowledgeBase |
getCardinalityConstraint | public int getCardinalityConstraint()(Code) | | Get the cardinality constraint (how many solutions
should be compouted). Default is InferenceEngine.ONE
the number of expected results |
getDescription | public String getDescription()(Code) | | Get a description of this test case.
This is used by the org.mandarax.demo
package to display the test cases.
a brief description of the test case |
getExceptionHandlingPolicy | public int getExceptionHandlingPolicy()(Code) | | Get the exception handling policy.
an integer indicating the exception handling policy |
getPersonName | String getPersonName()(Code) | | Get the name of the person we are looking for.
More precisely, this is the name of the person expected to
replace the query variable as a result of the query.
the name of the person |
getQuery | public Query getQuery()(Code) | | Get the query.
a query |
setUp | protected void setUp()(Code) | | Sets up the fixture.
|
testResultSet | public void testResultSet()(Code) | | Run the test.
|
testResultSet | abstract public boolean testResultSet(ResultSet rs)(Code) | | Test the result set. Note that the result set is uninitialized (nothing has been fetched).
Parameters: rs - the result set false if the test fails and true otherwise |
|
|