use of io.atlasmap.spi.AtlasFieldReader in project atlasmap by atlasmap.
the class DefaultAtlasSessionTest method testGetFieldReader.
@Test
public void testGetFieldReader() {
AtlasFieldReader reader = new AtlasFieldReader() {
@Override
public void read(AtlasInternalSession session) throws AtlasException {
LOG.debug("read method");
}
};
session.setFieldReader(AtlasConstants.DEFAULT_SOURCE_DOCUMENT_ID, reader);
assertNotNull(session.getFieldReader(null));
assertNotNull(session.getFieldReader(""));
assertNotNull(session.getFieldReader(AtlasConstants.DEFAULT_SOURCE_DOCUMENT_ID));
assertNotNull(session.getFieldReader("", AtlasFieldReader.class));
}
use of io.atlasmap.spi.AtlasFieldReader in project atlasmap by atlasmap.
the class DefaultAtlasSessionTest method testSetFieldReader.
@Test
public void testSetFieldReader() {
AtlasFieldReader reader = new AtlasFieldReader() {
@Override
public void read(AtlasInternalSession session) throws AtlasException {
LOG.debug("read method");
}
};
session.setFieldReader(null, reader);
session.setFieldReader("", reader);
}
Aggregations