Search in sources :

Example 1 with EmptyGreetingRequest

use of io.scalecube.services.sut.EmptyGreetingRequest in project scalecube by scalecube.

the class ServiceRemoteTest method test_remote_mono_empty_request_response_greeting.

@Test
public void test_remote_mono_empty_request_response_greeting() {
    GreetingService service = gateway.call().api(GreetingService.class);
    // call the service.
    StepVerifier.create(service.emptyGreeting(new EmptyGreetingRequest())).expectNextMatches(resp -> resp instanceof EmptyGreetingResponse).expectComplete().verify(TIMEOUT);
}
Also used : EmptyGreetingResponse(io.scalecube.services.sut.EmptyGreetingResponse) GreetingService(io.scalecube.services.sut.GreetingService) EmptyGreetingRequest(io.scalecube.services.sut.EmptyGreetingRequest) Test(org.junit.jupiter.api.Test)

Aggregations

EmptyGreetingRequest (io.scalecube.services.sut.EmptyGreetingRequest)1 EmptyGreetingResponse (io.scalecube.services.sut.EmptyGreetingResponse)1 GreetingService (io.scalecube.services.sut.GreetingService)1 Test (org.junit.jupiter.api.Test)1