public class TestICUUnicodeKeyBuilder extends AbstractUnicodeKeyBuilderTestCase
KeyBuilder
.TestCase2.MyProperties, TestCase2.RandomType
_randomType, log
Constructor and Description |
---|
TestICUUnicodeKeyBuilder() |
TestICUUnicodeKeyBuilder(String arg0) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
doSuccessorTest(String s,
Properties properties)
Test whether or not the
Collator will differentiate Unicode
strings that differ only in a trailing nul character. |
Properties |
getProperties()
Reads in the configuration properties for the test from a
variety of resources and returns a properties hierarchy.
|
void |
test_correctCollator() |
void |
test_keyBuilder_unicode_trailingNuls()
Test examines the behavior when the
SuccessorUtil.successor(String) of an Unicode string is formed by
appending a nul character and reports an error if the
resulting byte[] when the key are formed compares as equal to the
original string from which the successor was formed. |
test_keyBuilder_multiField_unicode, test_keyBuilder_normalizeTrailingPadCharacters, test_keyBuilder_normalizeTruncatesVeryLongStrings, test_keyBuilder_unicode_order, test_keyBuilder_unicode_string_key_us_identical, test_keyBuilder_unicode_string_key_us_primary, test_keyBuilder_unicode_String_noTrailingNul
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, 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 TestICUUnicodeKeyBuilder()
public TestICUUnicodeKeyBuilder(String arg0)
arg0
- public Properties getProperties()
TestCase2
Properties
object, then the lower levels of the
hierarchy are recursively searched.The hierarchy is constructed from the following properties files in the following order. The first property file in this list corresponds to the top of the property hierarchy. The last property file in this list corresponds to the bottom of the property hierarchy. The property resources are:
getProperties
in class TestCase2
Properties
object that supplies bindings for
property names according to the described hierarchy among
property resources. The returned Properties
is NOT
cached.
TODO This does not handle the recursive truncation of the
class name to search for "test.properties" yet.public void test_correctCollator()
public void test_keyBuilder_unicode_trailingNuls()
SuccessorUtil.successor(String)
of an Unicode string is formed by
appending a nul
character and reports an error if the
resulting byte[] when the key are formed compares as equal to the
original string from which the successor was formed.
Note: Since Collator.IDENTICAL
appears to be required to
differentiate a trailing nul character (i.e., the successor of some
Unicode string), then I would strongly recommend that you form the sort
key first and then its successor (by appending a trailing nul).
protected boolean doSuccessorTest(String s, Properties properties)
Collator
will differentiate Unicode
strings that differ only in a trailing nul
character.s
- The Unicode string.collator
- The collator.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.