Code example for StringCharacterIterator

Methods: current, next

0
        StringCharacterIterator it2 = new StringCharacterIterator("xxstinx", 2,
                6, 4); 
        assertTrue("Range is equal", !it1.equals(it2));
        StringCharacterIterator it3 = new StringCharacterIterator("testing", 2,
                6, 2); 
        it3.setIndex(4);
        assertTrue("Not equal", it1.equals(it3));
    } 
 
    /** 
     * @tests java.text.StringCharacterIterator.clone() 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "clone", 
        args = {} 
    ) 
    public void test_clone() { 
        StringCharacterIterator sci0 = new StringCharacterIterator("fixture");
        assertSame(sci0, sci0);