Search in sources :

Example 1 with RuntimeId

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);
}
Also used : RuntimeId(org.guvnor.ala.runtime.RuntimeId) Test(org.junit.Test)

Aggregations

RuntimeId (org.guvnor.ala.runtime.RuntimeId)1 Test (org.junit.Test)1