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);
}
Aggregations