use of io.atlasmap.spi.AtlasFieldWriter in project atlasmap by atlasmap.
the class DefaultAtlasSessionTest method testGetFieldWriter.
@Test
public void testGetFieldWriter() {
AtlasFieldWriter writer = new AtlasFieldWriter() {
@Override
public void write(AtlasInternalSession session) throws AtlasException {
LOG.debug("write method");
}
};
session.setFieldWriter(AtlasConstants.DEFAULT_TARGET_DOCUMENT_ID, writer);
assertNotNull(session.getFieldWriter(null));
assertNotNull(session.getFieldWriter(""));
assertNotNull(session.getFieldWriter(AtlasConstants.DEFAULT_TARGET_DOCUMENT_ID));
assertNotNull(session.getFieldWriter("", AtlasFieldWriter.class));
}
use of io.atlasmap.spi.AtlasFieldWriter in project atlasmap by atlasmap.
the class DefaultAtlasSessionTest method testSetFieldWriter.
@Test
public void testSetFieldWriter() {
AtlasFieldWriter writer = new AtlasFieldWriter() {
@Override
public void write(AtlasInternalSession session) throws AtlasException {
LOG.debug("write method");
}
};
session.setFieldWriter(null, writer);
session.setFieldWriter("", writer);
}
Aggregations