use of org.guvnor.ala.ui.events.RuntimeChangeEvent in project kie-wb-common by kiegroup.
the class RuntimeServiceImpl method deleteRuntime.
@Override
public void deleteRuntime(final RuntimeKey runtimeKey, final boolean forced) {
checkNotNull("runtimeKey", runtimeKey);
runtimeProvisioningService.destroyRuntime(runtimeKey.getId(), forced);
runtimeChangeEvent.fire(new RuntimeChangeEvent(RuntimeChange.DELETED, runtimeKey));
}
use of org.guvnor.ala.ui.events.RuntimeChangeEvent in project kie-wb-common by kiegroup.
the class RuntimeServiceImplTest method testDeleteRuntime.
private void testDeleteRuntime(boolean forced) {
ProviderKey providerKey = mock(ProviderKey.class);
RuntimeKey runtimeKey = new RuntimeKey(providerKey, RUNTIME_ID);
service.deleteRuntime(runtimeKey, forced);
verify(runtimeProvisioningService, times(1)).destroyRuntime(RUNTIME_ID, forced);
verify(runtimeChangeEvent, times(1)).fire(new RuntimeChangeEvent(RuntimeChange.DELETED, runtimeKey));
}
Aggregations