Search in sources :

Example 16 with IEventBus

use of com.b2international.snowowl.eventbus.IEventBus in project snow-owl by b2ihealthcare.

the class EventBusHandlerRegistrationTest method test_UnregisterHandler_Registered.

@Test
public void test_UnregisterHandler_Registered() {
    final IEventBus actual = bus.registerHandler(ADDRESS, noopHandler).unregisterHandler(ADDRESS, noopHandler);
    assertEquals(bus, actual);
}
Also used : IEventBus(com.b2international.snowowl.eventbus.IEventBus) Test(org.junit.Test)

Example 17 with IEventBus

use of com.b2international.snowowl.eventbus.IEventBus in project snow-owl by b2ihealthcare.

the class EventBusSendTest method test_Send_No_Handler.

@Test
public void test_Send_No_Handler() {
    final IEventBus actual = bus.send(ADDRESS, SEND_MESSAGE, null);
    assertEquals(bus, actual);
}
Also used : IEventBus(com.b2international.snowowl.eventbus.IEventBus) Test(org.junit.Test)

Aggregations

IEventBus (com.b2international.snowowl.eventbus.IEventBus)17 Test (org.junit.Test)10 ResourceURI (com.b2international.snowowl.core.ResourceURI)3 Promise (com.b2international.snowowl.core.events.util.Promise)3 TimeUnit (java.util.concurrent.TimeUnit)3 AuthorizedEventBus (com.b2international.snowowl.core.authorization.AuthorizedEventBus)2 JWTGenerator (com.b2international.snowowl.core.identity.JWTGenerator)2 Permission (com.b2international.snowowl.core.identity.Permission)2 Role (com.b2international.snowowl.core.identity.Role)2 User (com.b2international.snowowl.core.identity.User)2 JobRequests (com.b2international.snowowl.core.jobs.JobRequests)2 AbstractRestService (com.b2international.snowowl.core.rest.AbstractRestService)2 IMessage (com.b2international.snowowl.eventbus.IMessage)2 Operation (io.swagger.v3.oas.annotations.Operation)2 Parameter (io.swagger.v3.oas.annotations.Parameter)2 ApiResponse (io.swagger.v3.oas.annotations.responses.ApiResponse)2 ApiResponses (io.swagger.v3.oas.annotations.responses.ApiResponses)2 Tag (io.swagger.v3.oas.annotations.tags.Tag)2 HttpStatus (org.springframework.http.HttpStatus)2 ResponseEntity (org.springframework.http.ResponseEntity)2