public void test_getIterator(){
  String test="Test string";
  try {
    AttributedString attrString=new AttributedString(test);
    AttributedCharacterIterator it=attrString.getIterator();
    assertEquals("Incorrect iteration on AttributedString",it.first(),test.charAt(0));
  }
 catch (  Exception e) {
    fail("Unexpected exceptiption " + e.toString());
  }
}

public void test_getIterator ( ) { String test = "Test string" ; try { AttributedString attrString = new AttributedString ( test ) ; AttributedCharacterIterator it = attrString . getIterator ( ) ; assertEquals ( "Incorrect iteration on AttributedString" , it . first ( ) , test . charAt ( 0 ) ) ; } catch ( Exception e ) { fail ( "Unexpected exceptiption " + e . toString ( ) ) ; } }
java . text . attributedstring # getiterator ( ) test of method java . text . attributedstring # getiterator ( ) .
