use of org.pentaho.metaverse.api.IGraphWriter in project pentaho-metaverse by pentaho.
the class VfsLineageWriterTest method testGetSetGraphWriter.
@Test
public void testGetSetGraphWriter() throws Exception {
IGraphWriter graphWriter = writer.getGraphWriter();
assertNotNull(graphWriter);
writer.setGraphWriter(null);
assertNull(writer.getGraphWriter());
}
use of org.pentaho.metaverse.api.IGraphWriter in project pentaho-metaverse by pentaho.
the class VfsLineageWriterTest method testSetGraphOutputStream.
@Test
public void testSetGraphOutputStream() throws IOException {
try (OutputStream graphOutputStream = writer.getGraphOutputStream(null)) {
assertNull(graphOutputStream);
}
IGraphWriter graphWriter = new GraphMLWriter();
writer.setGraphWriter(graphWriter);
try (OutputStream graphOutputStream = writer.getGraphOutputStream(holder)) {
assertNotNull(graphOutputStream);
}
graphWriter = new GraphSONWriter();
writer.setGraphWriter(graphWriter);
try (OutputStream graphOutputStream = writer.getGraphOutputStream(holder)) {
assertNotNull(graphOutputStream);
}
graphWriter = new GraphCsvWriter();
writer.setGraphWriter(graphWriter);
try (OutputStream graphOutputStream = writer.getGraphOutputStream(holder)) {
assertNotNull(graphOutputStream);
}
}
Aggregations