Code example for BreakIterator

Methods: getText, setText

0
        } 
    } 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "previous", 
        args = {} 
    ) 
    public void testPrevious() { 
        assertEquals(-1, iterator.previous());
        iterator.setText(TEXT);
        assertEquals(-1, iterator.previous());
        iterator.last();
        assertEquals(TEXT.length() - 1, iterator.previous());
    } 
 
    /** 
     * @tests java.text.BreakIterator#getAvailableLocales(). Test of method 
     *        java.text.BreakIterator#getAvailableLocales(). 
     */ 
    @TestTargetNew(