|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.junit.Assert org.apache.lucene.util.LuceneTestCase org.apache.lucene.analysis.CollationTestBase
public abstract class CollationTestBase
Base test class for testing Unicode collation.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.lucene.util.LuceneTestCase |
---|
LuceneTestCase.Nightly |
Field Summary | |
---|---|
protected String |
firstRangeBeginningOriginal
|
protected String |
firstRangeEndOriginal
|
protected String |
secondRangeBeginningOriginal
|
protected String |
secondRangeEndOriginal
|
Fields inherited from class org.apache.lucene.util.LuceneTestCase |
---|
classRules, random, RANDOM_MULTIPLIER, ruleChain, stores, TEMP_DIR, TEST_CLEAN_THREADS, TEST_DIRECTORY, TEST_ITER, TEST_ITER_MIN, TEST_LINE_DOCS_FILE, TEST_LOCALE, TEST_NIGHTLY, TEST_SEED, TEST_TIMEZONE, TEST_VERSION_CURRENT, testsFailed, VERBOSE |
Constructor Summary | |
---|---|
CollationTestBase()
|
Method Summary | |
---|---|
void |
assertThreadSafe(Analyzer analyzer)
|
protected String |
encodeCollationKey(byte[] keyBits)
Convenience method to perform the same function as CollationKeyFilter. |
void |
testCollationKeySort(Analyzer usAnalyzer,
Analyzer franceAnalyzer,
Analyzer swedenAnalyzer,
Analyzer denmarkAnalyzer,
String usResult,
String frResult,
String svResult,
String dkResult)
|
void |
testFarsiRangeFilterCollating(Analyzer analyzer,
String firstBeg,
String firstEnd,
String secondBeg,
String secondEnd)
|
void |
testFarsiRangeQueryCollating(Analyzer analyzer,
String firstBeg,
String firstEnd,
String secondBeg,
String secondEnd)
|
void |
testFarsiTermRangeQuery(Analyzer analyzer,
String firstBeg,
String firstEnd,
String secondBeg,
String secondEnd)
|
Methods inherited from class org.junit.Assert |
---|
assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String firstRangeBeginningOriginal
protected String firstRangeEndOriginal
protected String secondRangeBeginningOriginal
protected String secondRangeEndOriginal
Constructor Detail |
---|
public CollationTestBase()
Method Detail |
---|
protected String encodeCollationKey(byte[] keyBits)
keyBits
- the result from
collator.getCollationKey(original).toByteArray()
public void testFarsiRangeFilterCollating(Analyzer analyzer, String firstBeg, String firstEnd, String secondBeg, String secondEnd) throws Exception
Exception
public void testFarsiRangeQueryCollating(Analyzer analyzer, String firstBeg, String firstEnd, String secondBeg, String secondEnd) throws Exception
Exception
public void testFarsiTermRangeQuery(Analyzer analyzer, String firstBeg, String firstEnd, String secondBeg, String secondEnd) throws Exception
Exception
public void testCollationKeySort(Analyzer usAnalyzer, Analyzer franceAnalyzer, Analyzer swedenAnalyzer, Analyzer denmarkAnalyzer, String usResult, String frResult, String svResult, String dkResult) throws Exception
Exception
public void assertThreadSafe(Analyzer analyzer) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |