DBaseFileAttributeAccessor extends AbstractBufferedAttributeProvider { @Override protected AttributeValue loadValue(String name) throws AttributeException { final OutputParameter<AttributeType> param = new OutputParameter<>(); final Object value = this.pool.getRawValue(this.recordNumber, name, param); return new AttributeValueImpl(param.get(), value); } 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 testLoadValue() throws Exception { AttributeValue value = this.accessor.loadValue("CATEGORIE"); assertNotNull(value); assertEquals("Religieux", value.getValue()); }