Search in sources :

Example 6 with PipelineKey

use of org.guvnor.ala.ui.model.PipelineKey in project kie-wb-common by kiegroup.

the class ProvisioningManagementPerspectiveTest method testAddNewRuntime.

@Test
public void testAddNewRuntime() {
    Provider provider = new Provider(mockProviderKey(mockProviderTypeKey(""), ""), mock(ProviderConfiguration.class));
    @SuppressWarnings("unchecked") List<PipelineKey> pipelines = mock(List.class);
    when(runtimeService.getPipelines(provider.getKey().getProviderTypeKey())).thenReturn(pipelines);
    perspective.onAddNewRuntime(new AddNewRuntimeEvent(provider));
    verify(newDeployWizard, times(1)).start(provider, pipelines);
}
Also used : PipelineKey(org.guvnor.ala.ui.model.PipelineKey) AddNewRuntimeEvent(org.guvnor.ala.ui.client.events.AddNewRuntimeEvent) Provider(org.guvnor.ala.ui.model.Provider) ProviderConfiguration(org.guvnor.ala.ui.model.ProviderConfiguration) Test(org.junit.Test)

Aggregations

PipelineKey (org.guvnor.ala.ui.model.PipelineKey)6 Pipeline (org.guvnor.ala.ui.model.Pipeline)2 ProviderTypeKey (org.guvnor.ala.ui.model.ProviderTypeKey)2 Stage (org.guvnor.ala.ui.model.Stage)2 Test (org.junit.Test)2 AddNewRuntimeEvent (org.guvnor.ala.ui.client.events.AddNewRuntimeEvent)1 PipelineItemPresenter (org.guvnor.ala.ui.client.wizard.pipeline.select.item.PipelineItemPresenter)1 PipelineError (org.guvnor.ala.ui.model.PipelineError)1 PipelineExecutionTrace (org.guvnor.ala.ui.model.PipelineExecutionTrace)1 PipelineExecutionTraceKey (org.guvnor.ala.ui.model.PipelineExecutionTraceKey)1 Provider (org.guvnor.ala.ui.model.Provider)1 ProviderConfiguration (org.guvnor.ala.ui.model.ProviderConfiguration)1 ProviderKey (org.guvnor.ala.ui.model.ProviderKey)1 Runtime (org.guvnor.ala.ui.model.Runtime)1 RuntimeKey (org.guvnor.ala.ui.model.RuntimeKey)1 RuntimeListItem (org.guvnor.ala.ui.model.RuntimeListItem)1 Before (org.junit.Before)1