Code example for BreakIterator

Methods: first, setText

0
        @TestTargetNew( 
            level = TestLevel.COMPLETE, 
            notes = "", 
            method = "getLineInstance", 
            args = {} 
        ), 
        @TestTargetNew( 
            level = TestLevel.COMPLETE, 
            notes = "", 
            method = "getSentenceInstance", 
            args = {} 
        ) 
    }) 
    public void testCache() { 
        BreakIterator newOne = BreakIterator.getCharacterInstance(Locale.US);
        assertNotSame(newOne, iterator);
        assertEquals(newOne, iterator);
 
        newOne = BreakIterator.getCharacterInstance();
        assertEquals(newOne, iterator);