File outputFolder = TestDataProvider.getTestOutputDir();
FileOutputStream svgStream = new FileOutputStream(new File(outputFolder, "missingResourceDelta_1_3.svg"));
FileOutputStream dotStream = new FileOutputStream(new File(outputFolder, "missingResourceDelta_1_3.dot"));
IPath rootPath = new Path("/usr/share/puppet");
CatalogServices catalogServices = new CatalogServices();
catalogServices.produceDOTDeltaGraph(
"Sample catalog", oldCatalogStream, rootPath, newCatalogStream, rootPath, dotStream,
new NullProgressMonitor());
oldCatalogStream = new FileInputStream(oldCatalogFile);
newCatalogStream = new FileInputStream(newCatalogFile);
catalogServices.produceSVGDeltaGraph(
"Sample catalog", oldCatalogStream, rootPath, newCatalogStream, rootPath, svgStream,
new NullProgressMonitor());
}