assertEquals( 1, indexIterator.nextDocument() );
counterCollectionVisitor.prepare();
indexIterator.accept( counterCollectionVisitor );
assertEquals( 1, setupVisitor.count[ 0 ] );
assertEquals( 2, indexIterator.nextDocument() );
counterCollectionVisitor.prepare();
indexIterator.accept( counterCollectionVisitor );
assertEquals( 1, setupVisitor.count[ 0 ] );
}
public void testCountScorer() throws QueryParserException, QueryBuilderVisitorException, IOException {