當前位置: 首頁>>代碼示例>>Java>>正文


Java AbstractWizard類代碼示例

本文整理匯總了Java中org.uberfire.ext.widgets.core.client.wizards.AbstractWizard的典型用法代碼示例。如果您正苦於以下問題:Java AbstractWizard類的具體用法?Java AbstractWizard怎麽用?Java AbstractWizard使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


AbstractWizard類屬於org.uberfire.ext.widgets.core.client.wizards包,在下文中一共展示了AbstractWizard類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: setup

import org.uberfire.ext.widgets.core.client.wizards.AbstractWizard; //導入依賴的package包/類
@Before
public void setup() throws IllegalAccessException, NoSuchFieldException {
    doNothing().when( notification ).fire( any( NotificationEvent.class ) );
    doNothing().when( serverTemplateSelectedEvent ).fire( any( ServerTemplateSelected.class ) );
    specManagementServiceCaller = new CallerMock<SpecManagementService>( specManagementService );
    when( newContainerFormPresenter.getView() ).thenReturn( newContainerFormPresenterView );
    newContainerWizard = spy( new NewContainerWizard(
            newContainerFormPresenter,
            processConfigPagePresenter,
            specManagementServiceCaller,
            notification,
            serverTemplateSelectedEvent
    ) );

    final Field field = AbstractWizard.class.getDeclaredField( "view" );
    field.setAccessible( true );
    field.set( newContainerWizard, view );
}
 
開發者ID:kiegroup,項目名稱:kie-wb-common,代碼行數:19,代碼來源:NewContainerWizardTest.java

示例2: setup

import org.uberfire.ext.widgets.core.client.wizards.AbstractWizard; //導入依賴的package包/類
@Before
public void setup() throws IllegalAccessException, NoSuchFieldException {
    specManagementServiceCaller = new CallerMock<SpecManagementService>( specManagementService );
    when( newTemplatePresenter.getView() ).thenReturn( newTemplatePresenterView );

    final Answer addContentChangeHandler = new Answer() {
        @Override
        public Object answer( InvocationOnMock invocation ) throws Throwable {
            final ContentChangeHandler handler = (ContentChangeHandler) invocation.getArguments()[ 0 ];
            contentChangeHandlers.add( handler );
            return null;
        }
    };
    doAnswer( addContentChangeHandler ).when( newTemplatePresenter ).addContentChangeHandler( any( ContentChangeHandler.class ) );
    doAnswer( addContentChangeHandler ).when( newContainerFormPresenter ).addContentChangeHandler( any( ContentChangeHandler.class ) );

    newServerTemplateWizard = new NewServerTemplateWizard(
            newTemplatePresenter,
            newContainerFormPresenter,
            processConfigPagePresenter,
            specManagementServiceCaller,
            notification,
            serverTemplateListRefreshEvent
    );

    final Field field = AbstractWizard.class.getDeclaredField( "view" );
    field.setAccessible( true );
    field.set( newServerTemplateWizard, view );

    newServerTemplateWizard = spy( newServerTemplateWizard );
}
 
開發者ID:kiegroup,項目名稱:kie-wb-common,代碼行數:32,代碼來源:NewServerTemplateWizardTest.java


注:本文中的org.uberfire.ext.widgets.core.client.wizards.AbstractWizard類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。