IndexedFidWriter implements FileWriter { public boolean hasNext() throws IOException { return reader.hasNext(); } IndexedFidWriter( ShpFiles shpFiles );  IndexedFidWriter( ShpFiles shpFiles, StorageFile storageFile ); private  IndexedFidWriter(); boolean hasNext(); long next(); void close(); void remove(); void write(); boolean isClosed(); String id(); static final int HEADER_SIZE; static final int RECORD_SIZE; static final IndexedFidWriter EMPTY_WRITER; }
@Test public void testHasNext() throws MalformedURLException, IOException { FidIndexer.generate(backshp.toURI().toURL()); initWriter(); for( int i = 1, j = indexFile.getRecordCount(); i < j; i++ ) { assertTrue(i + "th record", writer.hasNext()); assertEquals((long) i, writer.next()); } }