use of java.text.BreakIterator in project j2objc by google.
the class BreakIteratorTest method testGetCharacterInstanceLocale.
/*
* Class under test for BreakIterator getCharacterInstance(Locale)
*/
public void testGetCharacterInstanceLocale() {
BreakIterator it = BreakIterator.getCharacterInstance(Locale.US);
BreakIterator it2 = BreakIterator.getCharacterInstance(Locale.CHINA);
assertEquals(it, it2);
}
use of java.text.BreakIterator in project j2objc by google.
the class BreakIteratorTest method test_next.
public void test_next() {
// Regression test for HARMONY-30
BreakIterator bi = BreakIterator.getWordInstance(Locale.US);
bi.setText("This is the test, WordInstance");
int n = bi.first();
n = bi.next();
assertEquals("Assert 0: next() returns incorrect value ", 4, n);
assertEquals(BreakIterator.DONE, iterator.next());
iterator.setText(TEXT);
assertEquals(2, iterator.next());
}
use of java.text.BreakIterator in project j2objc by google.
the class BreakIteratorTest method testGetLineInstanceLocale.
/*
* Class under test for BreakIterator getLineInstance(Locale)
*/
public void testGetLineInstanceLocale() {
BreakIterator it = BreakIterator.getLineInstance(Locale.US);
assertNotNull(it);
BreakIterator.getLineInstance(new Locale("bad locale"));
}
use of java.text.BreakIterator in project j2objc by google.
the class BreakIteratorTest method testGetSentenceInstance.
/*
* Class under test for BreakIterator getSentenceInstance()
*/
public void testGetSentenceInstance() {
BreakIterator it = BreakIterator.getSentenceInstance();
assertNotNull(it);
}
use of java.text.BreakIterator in project j2objc by google.
the class BreakIteratorTest method testGetSentenceInstanceLocale.
/*
* Class under test for BreakIterator getSentenceInstance(Locale)
*/
public void testGetSentenceInstanceLocale() {
BreakIterator it = BreakIterator.getSentenceInstance(Locale.US);
assertNotNull(it);
}
Aggregations