Search in sources :

Example 6 with WizardPageStatusChangeEvent

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);
}
Also used : WizardPageStatusChangeEvent(org.uberfire.ext.widgets.core.client.wizards.WizardPageStatusChangeEvent)

Example 7 with WizardPageStatusChangeEvent

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();
}
Also used : WizardPageStatusChangeEvent(org.uberfire.ext.widgets.core.client.wizards.WizardPageStatusChangeEvent) Test(org.junit.Test)

Example 8 with WizardPageStatusChangeEvent

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));
}
Also used : WizardPageStatusChangeEvent(org.uberfire.ext.widgets.core.client.wizards.WizardPageStatusChangeEvent)

Example 9 with WizardPageStatusChangeEvent

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);
}
Also used : WizardPageStatusChangeEvent(org.uberfire.ext.widgets.core.client.wizards.WizardPageStatusChangeEvent)

Example 10 with WizardPageStatusChangeEvent

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);
}
Also used : WizardPageStatusChangeEvent(org.uberfire.ext.widgets.core.client.wizards.WizardPageStatusChangeEvent)

Aggregations

WizardPageStatusChangeEvent (org.uberfire.ext.widgets.core.client.wizards.WizardPageStatusChangeEvent)27 Test (org.junit.Test)8 ContentChangeHandler (org.kie.workbench.common.screens.server.management.client.util.ContentChangeHandler)5 Entity (javax.persistence.Entity)2 GAV (org.guvnor.common.services.project.model.GAV)2 DataModelerService (org.kie.workbench.common.screens.datamodeller.service.DataModelerService)2 AnnotationDefinitionRequest (org.kie.workbench.common.services.datamodeller.driver.model.AnnotationDefinitionRequest)2 AnnotationDefinitionResponse (org.kie.workbench.common.services.datamodeller.driver.model.AnnotationDefinitionResponse)2 InvocationOnMock (org.mockito.invocation.InvocationOnMock)2 Answer (org.mockito.stubbing.Answer)2 PostConstruct (javax.annotation.PostConstruct)1 PipelineParamsPagePresenter (org.guvnor.ala.ui.client.wizard.pipeline.params.PipelineParamsPagePresenter)1 ArtifactIdChangeHandler (org.guvnor.common.services.project.client.ArtifactIdChangeHandler)1 GroupIdChangeHandler (org.guvnor.common.services.project.client.GroupIdChangeHandler)1 NameChangeHandler (org.guvnor.common.services.project.client.NameChangeHandler)1 VersionChangeHandler (org.guvnor.common.services.project.client.VersionChangeHandler)1 M2RepoService (org.guvnor.m2repo.service.M2RepoService)1 RemoteCallback (org.jboss.errai.common.client.api.RemoteCallback)1 Before (org.junit.Before)1 ReleaseId (org.kie.server.api.model.ReleaseId)1