Search in sources :

Example 1 with CamelReactiveStreamsServiceImpl

use of org.apache.camel.component.reactive.streams.engine.CamelReactiveStreamsServiceImpl in project camel by apache.

the class CamelReactiveStreamsTest method testDefaultService.

@Test
public void testDefaultService() {
    CamelReactiveStreamsService service1 = CamelReactiveStreams.get(context, "default-service");
    assertTrue(service1 instanceof CamelReactiveStreamsServiceImpl);
}
Also used : CamelReactiveStreamsService(org.apache.camel.component.reactive.streams.api.CamelReactiveStreamsService) CamelReactiveStreamsServiceImpl(org.apache.camel.component.reactive.streams.engine.CamelReactiveStreamsServiceImpl) Test(org.junit.Test)

Example 2 with CamelReactiveStreamsServiceImpl

use of org.apache.camel.component.reactive.streams.engine.CamelReactiveStreamsServiceImpl in project camel by apache.

the class CamelReactiveStreamsTest method testSameDefaultServiceReturned.

@Test
public void testSameDefaultServiceReturned() {
    CamelReactiveStreamsService service1 = CamelReactiveStreams.get(context, "default-service");
    CamelReactiveStreamsService service2 = CamelReactiveStreams.get(context, "default-service");
    assertTrue(service1 instanceof CamelReactiveStreamsServiceImpl);
    assertEquals(service1, service2);
}
Also used : CamelReactiveStreamsService(org.apache.camel.component.reactive.streams.api.CamelReactiveStreamsService) CamelReactiveStreamsServiceImpl(org.apache.camel.component.reactive.streams.engine.CamelReactiveStreamsServiceImpl) Test(org.junit.Test)

Aggregations

CamelReactiveStreamsService (org.apache.camel.component.reactive.streams.api.CamelReactiveStreamsService)2 CamelReactiveStreamsServiceImpl (org.apache.camel.component.reactive.streams.engine.CamelReactiveStreamsServiceImpl)2 Test (org.junit.Test)2