question: 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 ) ; }
target:  Test that Striterator returns false for hasNext() after close()