Code example for BreakIterator

Methods: getText, setText

0
        assertEquals(0, iterator.preceding(2));
        assertEquals(2, iterator.preceding(3));
        assertEquals(16, iterator.preceding(17));
        assertEquals(17, iterator.preceding(18));
        assertEquals(18, iterator.preceding(19));
        try { 
            iterator.preceding(-1);
            fail("should throw illegal argument exception");
        } catch (IllegalArgumentException e) {
        } 
        try { 
            iterator.preceding(TEXT.length());
            fail("should throw illegal argument exception");
        } catch (IllegalArgumentException e) {
        } 
    } 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "previous", 
        args = {}