Search in sources :

Example 6 with IDocumentController

use of org.pentaho.metaverse.api.IDocumentController in project pentaho-metaverse by pentaho.

the class MetaverseTestUtils method getDocumentController.

public static IDocumentController getDocumentController() {
    IDocumentController documentController = mock(IDocumentController.class);
    IMetaverseBuilder metaverseBuilder = mock(IMetaverseBuilder.class);
    when(metaverseBuilder.getMetaverseObjectFactory()).thenReturn(getMetaverseObjectFactory());
    when(documentController.getMetaverseObjectFactory()).thenReturn(getMetaverseObjectFactory());
    when(documentController.getMetaverseBuilder()).thenReturn(metaverseBuilder);
    return documentController;
}
Also used : IDocumentController(org.pentaho.metaverse.api.IDocumentController) IMetaverseBuilder(org.pentaho.metaverse.api.IMetaverseBuilder)

Aggregations

IDocumentController (org.pentaho.metaverse.api.IDocumentController)6 Test (org.junit.Test)3 IMetaverseBuilder (org.pentaho.metaverse.api.IMetaverseBuilder)3 Graph (com.tinkerpop.blueprints.Graph)2 TinkerGraph (com.tinkerpop.blueprints.impls.tg.TinkerGraph)2 IDocumentAnalyzer (org.pentaho.metaverse.api.IDocumentAnalyzer)2 ArrayList (java.util.ArrayList)1 Bundle (org.osgi.framework.Bundle)1 BundleContext (org.osgi.framework.BundleContext)1 ServiceReference (org.osgi.framework.ServiceReference)1 BlueprintContainer (org.osgi.service.blueprint.container.BlueprintContainer)1 IComponentDescriptor (org.pentaho.metaverse.api.IComponentDescriptor)1 IDocument (org.pentaho.metaverse.api.IDocument)1 IMetaverseNode (org.pentaho.metaverse.api.IMetaverseNode)1 IMetaverseObjectFactory (org.pentaho.metaverse.api.IMetaverseObjectFactory)1 IRequiresMetaverseBuilder (org.pentaho.metaverse.api.IRequiresMetaverseBuilder)1 MetaverseException (org.pentaho.metaverse.api.MetaverseException)1 MetaverseBuilder (org.pentaho.metaverse.impl.MetaverseBuilder)1