DBaseFileAttributeAccessor extends AbstractBufferedAttributeProvider { @Override @Pure public Collection<String> getAllAttributeNames() { return this.pool.getAllAttributeNames(this.recordNumber); } DBaseFileAttributeAccessor(DBaseFileAttributePool pool, int recordNumber); @Pure URL getResource(); @Pure int getRecordNumber(); @Override @Pure int getAttributeCount(); @Override @Pure Collection<String> getAllAttributeNames(); @Override @Pure void toMap(Map<String, Object> mapToFill);  }
@Test public void testGetAllAttributeNames() { Collection<String> names = this.accessor.getAllAttributeNames(); assertNotNull(names); assertEquals(4, names.size()); Iterator<String> iterator = names.iterator(); assertTrue(iterator.hasNext()); assertEquals("SOURCE", iterator.next()); assertTrue(iterator.hasNext()); assertEquals("CATEGORIE", iterator.next()); assertTrue(iterator.hasNext()); assertEquals("NATURE", iterator.next()); assertTrue(iterator.hasNext()); assertEquals("HAUTEUR", iterator.next()); assertFalse(iterator.hasNext()); }