public void test_simplePrematureClose(){
  Striterator iter=new Striterator(m_data.iterator());
  int i=0;
  while (iter.hasNext()) {
    iter.next();
    if (++i == 10) {
      iter.close();
      assertTrue(!iter.hasNext());
    }
  }
  assertTrue(!iter.isOpen());
  assertTrue(i == 10);
}

public void test_simplePrematureClose ( ) { Striterator iter = new Striterator ( m_data . iterator ( ) ) ; int i = 0 ; while ( iter . hasNext ( ) ) { iter . next ( ) ; if ( ++ i == 10 ) { iter . close ( ) ; assertTrue ( ! iter . hasNext ( ) ) ; } } assertTrue ( ! iter . isOpen ( ) ) ; assertTrue ( i == 10 ) ; }
test that striterator returns false for hasnext ( ) after close ( )
