use of org.guvnor.ala.runtime.RuntimeId in project kie-wb-common by kiegroup.
the class InMemoryRuntimeRegistryTest method testDeregisterRuntime.
@Test
public void testDeregisterRuntime() {
String id = runtime.getId();
RuntimeId runtimeId = mock(RuntimeId.class);
when(runtimeId.getId()).thenReturn(id);
runtimeRegistry.registerRuntime(runtime);
verifyRuntimeIsRegistered(runtime);
runtimeRegistry.deregisterRuntime(runtimeId);
verifyRuntimeIsNotRegistered(runtime);
}