本文整理汇总了Java中org.pentaho.ui.xul.dom.DocumentFactory类的典型用法代码示例。如果您正苦于以下问题:Java DocumentFactory类的具体用法?Java DocumentFactory怎么用?Java DocumentFactory使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DocumentFactory类属于org.pentaho.ui.xul.dom包,在下文中一共展示了DocumentFactory类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setUp
import org.pentaho.ui.xul.dom.DocumentFactory; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
controller = spy( new GitController() );
controller.setAuthorName( "test <[email protected]>" );
controller.setCommitMessage( "test" );
uiGit = mock( UIGit.class );
controller.setVCS( uiGit );
doNothing().when( controller ).fireSourceChanged();
doReturn( false ).when( controller ).anyChangedTabs();
doNothing().when( controller ).addGraph( any( EngineMetaInterface.class ), anyString() );
doNothing().when( controller ).loadMainPerspective();
DocumentFactory.registerElementClass( ElementDom4J.class );
document = mock( Document.class );
XulDomContainer xulDomContainer = mock( XulDomContainer.class );
when( xulDomContainer.getDocumentRoot() ).thenReturn( document );
controller.setXulDomContainer( xulDomContainer );
}
示例2: setUp
import org.pentaho.ui.xul.dom.DocumentFactory; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
DocumentFactory.registerElementClass( ElementDom4J.class );
controller = new BrowseController();
controller.setRepositoryDirectory( mock( UIRepositoryDirectory.class ) );
directoryMap = new HashMap<>( 8 );
controller.setDirMap( directoryMap );
document = mock( Document.class );
XulDomContainer xulDomContainer = mock( XulDomContainer.class );
when( xulDomContainer.getDocumentRoot() ).thenReturn( document );
controller.setXulDomContainer( xulDomContainer );
UIRepositoryDirectory someDirectory = mock( UIRepositoryDirectory.class );
selectedFolder = mock( UIRepositoryDirectory.class );
when( selectedFolder.createFolder( FOLDER_NAME ) ).thenReturn( someDirectory );
XulTree folderTree = mock( XulTree.class );
when( folderTree.getSelectedItems() ).thenReturn( Collections.<Object>singleton( selectedFolder ) );
controller.setFolderTree( folderTree );
directoryBinding = mock( Binding.class );
controller.setDirectoryBinding( directoryBinding );
selectedItemsBinding = mock( Binding.class );
controller.setSelectedItemsBinding( selectedItemsBinding );
}