use of org.uberfire.ext.widgets.core.client.wizards.WizardPageStatusChangeEvent in project drools-wb by kiegroup.
the class SummaryPage method fireEvent.
// package protected to allow overriding in tests
void fireEvent() {
final WizardPageStatusChangeEvent event = new WizardPageStatusChangeEvent(this);
wizardPageStatusChangeEvent.fire(event);
}
use of org.uberfire.ext.widgets.core.client.wizards.WizardPageStatusChangeEvent in project kie-wb-common by kiegroup.
the class NewDeployWizardTest method testOnStatusChangePipelinePageSelectedWithNoParamForms.
@Test
public void testOnStatusChangePipelinePageSelectedWithNoParamForms() {
when(selectPipelinePage.getPipeline()).thenReturn(PIPELINE1_KEY);
when(descriptor1.accept(PIPELINE1_KEY)).thenReturn(false);
when(descriptor2.accept(PIPELINE1_KEY)).thenReturn(false);
wizard.onStatusChange(new WizardPageStatusChangeEvent(selectPipelinePage));
verify(descriptor1, times(1)).accept(PIPELINE1_KEY);
verify(descriptor2, times(1)).accept(PIPELINE1_KEY);
assertEquals(1, wizard.getPages().size());
assertEquals(selectPipelinePage, wizard.getPages().get(0));
verify(pipelineParamsPageInstance, never()).get();
}
use of org.uberfire.ext.widgets.core.client.wizards.WizardPageStatusChangeEvent in project kie-wb-common by kiegroup.
the class NewDeployWizardTest method preSelectForms.
public void preSelectForms(PipelineKey pipelineKey) {
when(selectPipelinePage.getPipeline()).thenReturn(pipelineKey);
when(descriptor1.accept(pipelineKey)).thenReturn(true);
when(descriptor1.getParamForms()).thenReturn(paramsForms);
wizard.onStatusChange(new WizardPageStatusChangeEvent(selectPipelinePage));
}
use of org.uberfire.ext.widgets.core.client.wizards.WizardPageStatusChangeEvent in project kie-wb-common by kiegroup.
the class DataSourceDefPage method notifyChange.
public void notifyChange() {
final WizardPageStatusChangeEvent event = new WizardPageStatusChangeEvent(this);
statusChangeEvent.fire(event);
}
use of org.uberfire.ext.widgets.core.client.wizards.WizardPageStatusChangeEvent in project kie-wb-common by kiegroup.
the class DriverDefPage method notifyChange.
public void notifyChange() {
final WizardPageStatusChangeEvent event = new WizardPageStatusChangeEvent(this);
statusChangeEvent.fire(event);
}
Aggregations