Package com.semedy.reasoner.reasoning
Class AbstractTestTemplate
java.lang.Object
com.semedy.reasoner.reasoning.AbstractTestTemplate
- Direct Known Subclasses:
Descriptions
,JoinCacheTest
,MagicSetsRewriterTest
,RecreateGeoIndexTest
,RecreateTextIndexTest
,TestAllRam
,Time1est
,Time1est
,TimeTest
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
void
void
void
evalAndWaitForSearchIndexes
(String flogic, String fquery, String[] expectedResult) void
evalWithoutResults
(String flogic, String fquery) void
setUp()
void
tearDown()
boolean
testAllFiles
(String path, boolean topdown, Configuration.StorageType storage, boolean symboltableondisc, boolean directencoded) boolean
testFile
(Reader is, String path, boolean topdown, Configuration.StorageType storage, boolean symboltableondisc, boolean directencoded) void
testWithSearchIndex
(String facts, String query, String[] expectedResults)
-
Constructor Details
-
AbstractTestTemplate
public AbstractTestTemplate()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
deleteDir
-
testWithSearchIndex
public void testWithSearchIndex(String facts, String query, String[] expectedResults) throws Exception - Throws:
Exception
-
evalAndWaitForSearchIndexes
public void evalAndWaitForSearchIndexes(String flogic, String fquery, String[] expectedResult) throws Exception - Throws:
Exception
-
eval
- Throws:
SemReasonerException
-
eval
public Vector<String> eval(String flogic, String fquery, boolean applyRewriters) throws SemReasonerException - Throws:
SemReasonerException
-
eval
public Vector<String> eval(String flogic, String fquery, boolean applyRewriters, boolean useMonitor) throws SemReasonerException - Throws:
SemReasonerException
-
eval
public void eval(String flogic, String fqueries, List<Vector<String>> results) throws SemReasonerException - Throws:
SemReasonerException
-
eval
public void eval(String flogic, String fqueries, List<Vector<String>> results, boolean applyRewriters) throws SemReasonerException - Throws:
SemReasonerException
-
evalWithoutResults
- Throws:
SemReasonerException
-
testFile
public boolean testFile(Reader is, String path, boolean topdown, Configuration.StorageType storage, boolean symboltableondisc, boolean directencoded) throws EDBException, SymboltableException, ReasoningException, IOException, InterruptedException, SemReasonerException -
testAllFiles
public boolean testAllFiles(String path, boolean topdown, Configuration.StorageType storage, boolean symboltableondisc, boolean directencoded) throws Exception - Throws:
Exception
-