Package org.apache.lucene.tests.analysis
Class VocabularyAssert
java.lang.Object
org.apache.lucene.tests.analysis.VocabularyAssert
Utility class for doing vocabulary-based stemming tests
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
assertVocabulary
(Analyzer a, InputStream vocOut) Run a vocabulary test against one file: tab separated.static void
assertVocabulary
(Analyzer a, InputStream voc, InputStream out) Run a vocabulary test against two data files.static void
assertVocabulary
(Analyzer a, Path zipFile, String vocOut) Run a vocabulary test against a tab-separated data file inside a zip filestatic void
assertVocabulary
(Analyzer a, Path zipFile, String voc, String out) Run a vocabulary test against two data files inside a zip file
-
Constructor Details
-
VocabularyAssert
public VocabularyAssert()
-
-
Method Details
-
assertVocabulary
public static void assertVocabulary(Analyzer a, InputStream voc, InputStream out) throws IOException Run a vocabulary test against two data files.- Throws:
IOException
-
assertVocabulary
Run a vocabulary test against one file: tab separated.- Throws:
IOException
-
assertVocabulary
public static void assertVocabulary(Analyzer a, Path zipFile, String voc, String out) throws IOException Run a vocabulary test against two data files inside a zip file- Throws:
IOException
-
assertVocabulary
Run a vocabulary test against a tab-separated data file inside a zip file- Throws:
IOException
-