use of org.pentaho.metaverse.locator.FileSystemLocator in project pentaho-metaverse by pentaho.
the class MetaverseValidationIT method init.
@BeforeClass
public static void init() throws Exception {
IntegrationTestUtil.initializePentahoSystem("src/it/resources/solution/system/pentahoObjects.spring.xml");
// we only care about the demo folder
FileSystemLocator fileSystemLocator = PentahoSystem.get(FileSystemLocator.class);
IDocumentLocatorProvider provider = PentahoSystem.get(IDocumentLocatorProvider.class);
// remove the original locator so we can set the modified one back on it
provider.removeDocumentLocator(fileSystemLocator);
fileSystemLocator.setRootFolder(ROOT_FOLDER);
provider.addDocumentLocator(fileSystemLocator);
MetaverseUtil.setDocumentController(PentahoSystem.get(IDocumentController.class));
// build the graph using our updated locator/provider
graph = IntegrationTestUtil.buildMetaverseGraph(provider);
reader = PentahoSystem.get(IMetaverseReader.class);
framedGraphFactory = new FramedGraphFactory(new GremlinGroovyModule());
framedGraph = framedGraphFactory.create(graph);
root = (RootNode) framedGraph.getVertex("entity", RootNode.class);
}
use of org.pentaho.metaverse.locator.FileSystemLocator in project pentaho-metaverse by pentaho.
the class LineageClientIT method init.
@BeforeClass
public static void init() throws Exception {
IntegrationTestUtil.initializePentahoSystem("src/it/resources/solution/system/pentahoObjects.spring.xml");
// we only care about the demo folder
FileSystemLocator fileSystemLocator = PentahoSystem.get(FileSystemLocator.class);
IDocumentLocatorProvider provider = PentahoSystem.get(IDocumentLocatorProvider.class);
// remove the original locator so we can set the modified one back on it
provider.removeDocumentLocator(fileSystemLocator);
fileSystemLocator.setRootFolder(ROOT_FOLDER);
provider.addDocumentLocator(fileSystemLocator);
docController = (DocumentController) PentahoSystem.get(IDocumentController.class);
MetaverseUtil.setDocumentController(docController);
}
Aggregations