public abstract class AbstractUnicodeKeyBuilderTestCase extends TestCase2
KeyBuilder
.TestCase2.MyProperties, TestCase2.RandomType
_randomType, log
Constructor and Description |
---|
AbstractUnicodeKeyBuilderTestCase() |
AbstractUnicodeKeyBuilderTestCase(String arg0) |
Modifier and Type | Method and Description |
---|---|
void |
test_keyBuilder_multiField_unicode()
Test that lexiographic order is maintain when a variable length Unicode
field is followed by another field.
|
void |
test_keyBuilder_normalizeTrailingPadCharacters()
Test of the ability to normalize trailing pad characters.
|
void |
test_keyBuilder_normalizeTruncatesVeryLongStrings()
Test verifies that very long strings are truncated.
|
void |
test_keyBuilder_unicode_order()
Test verifies the order among unicode sort keys, including verifying that
the pad byte causes a prefix such as "bro" to sort before a term which
extends that prefix, such as "brown".
|
void |
test_keyBuilder_unicode_string_key_us_identical() |
void |
test_keyBuilder_unicode_string_key_us_primary()
Test ability to encode unicode data into a variable length byte[] that
allows direct byte-by-byte comparisons which maintain the local-specific
sort order of the original strings.
|
void |
test_keyBuilder_unicode_String_noTrailingNul()
Test verifies that the trailing
nul byte is not part of
the key when a unicode string is appended to an IKeyBuilder . |
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, getProperties, 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, setUp, tearDown, toString
public AbstractUnicodeKeyBuilderTestCase()
public AbstractUnicodeKeyBuilderTestCase(String arg0)
arg0
- public void test_keyBuilder_unicode_string_key_us_primary()
public void test_keyBuilder_unicode_string_key_us_identical()
public void test_keyBuilder_unicode_String_noTrailingNul()
nul
byte is not part of
the key when a unicode string is appended to an IKeyBuilder
.
Note: The trailing nul
byte is appended by the ICU library
in order to have compatibility with their C library, but it is not of
interest for Java processing. However, note that a nul
byte MAY be used to separate components of a complex key.
public void test_keyBuilder_normalizeTrailingPadCharacters()
public void test_keyBuilder_normalizeTruncatesVeryLongStrings()
public void test_keyBuilder_unicode_order()
public void test_keyBuilder_multiField_unicode()
Test that lexiographic order is maintain when a variable length Unicode field is followed by another field. This test works by comparing the original multi-field key with the multi-field key formed from the successor of the Unicode field followed by the other field:
[text][nextValue] LT [successor(text)][nextValue]
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.