DBaseFileAttributeProvider extends AbstractAttributeProvider { @Override @Pure public Collection<String> getAllAttributeNames() { return this.accessor.getAllAttributeNames(); } DBaseFileAttributeProvider(DBaseFileAttributeAccessor accessor); @Override @SuppressWarnings("checkstyle:nofinalizer") @Deprecated(since = "17.0", forRemoval = true) void finalize(); @Pure URL getResource(); @Pure int getRecordNumber(); @Override void freeMemory(); @Override @Pure Collection<String> getAllAttributeNames(); @Override @Pure Collection<Attribute> getAllAttributes(); @Override @Pure Map<AttributeType, Collection<Attribute>> getAllAttributesByType(); @Override @Pure AttributeValue getAttribute(String name); @Override @Pure AttributeValue getAttribute(String name, AttributeValue default_value); @Override @Pure Attribute getAttributeObject(String name); @Override @Pure boolean hasAttribute(String name); @Override @Pure int getAttributeCount(); @Override @Pure void toMap(Map<String, Object> mapToFill);  }
@Test public void testGetAllAttributeNames() { Collection<String> names = this.provider.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()); }