DBaseFileAttributeProvider extends AbstractAttributeProvider { @Pure protected final boolean hasAttributeInDBase(String name) { return this.accessor.hasAttribute(name); } 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 testHasAttributeInDBase() { assertTrue(this.provider.hasAttributeInDBase("SOURCE")); assertTrue(this.provider.hasAttributeInDBase("CATEGORIE")); assertTrue(this.provider.hasAttributeInDBase("NATURE")); assertTrue(this.provider.hasAttributeInDBase("HAUTEUR")); assertFalse(this.provider.hasAttributeInDBase("NOFIELD")); assertFalse(this.provider.hasAttributeInDBase("NEWFIELD")); }