Code example for BreakIterator

Methods: last, previous, setText

0
    public void testFollowing() { 
        try { 
            iterator.following(1);
            fail("should throw illegal argument exception");
        } catch (IllegalArgumentException e) {
        } 
        iterator.setText(TEXT);
        assertEquals(2, iterator.following(1));
        try { 
            assertEquals(0, iterator.following(-1));
            fail("should throw illegal argument exception");
        } catch (IllegalArgumentException e) {
        } 
        try { 
            iterator.following(TEXT.length());
            fail("should throw illegal argument exception");
        } catch (IllegalArgumentException e) {
        } 
    } 
    @TestTargetNew( 
        level = TestLevel.COMPLETE,