use of org.pentaho.metaverse.graph.GraphSONWriter in project pentaho-metaverse by pentaho.
the class FileSystemLineageWriterTest method testGetSetGraphOutputStream.
@Test
public void testGetSetGraphOutputStream() {
assertNull(writer.getGraphOutputStream(null));
IGraphWriter graphWriter = new GraphMLWriter();
writer.setGraphWriter(graphWriter);
assertNotNull(writer.getGraphOutputStream(holder));
graphWriter = new GraphSONWriter();
writer.setGraphWriter(graphWriter);
assertNotNull(writer.getGraphOutputStream(holder));
graphWriter = new GraphCsvWriter();
writer.setGraphWriter(graphWriter);
assertNotNull(writer.getGraphOutputStream(holder));
}
use of org.pentaho.metaverse.graph.GraphSONWriter 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