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;
}
Aggregations