本文整理匯總了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 );
}
示例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 );
}