public void testRandomQueries() throws Exception {
  MemoryIndex index=randomMemoryIndex();
  for (int i=0; i < ITERATIONS; i++) {
    assertAgainstRAMDirectory(index);
  }
}

public void testRandomQueries ( ) throws Exception { MemoryIndex index = randomMemoryIndex ( ) ; for ( int i = 0 ; i < ITERATIONS ; i ++ ) { assertAgainstRAMDirectory ( index ) ; } }
runs random tests , up to iterations times .
