Search in sources :

Example 1 with ReturnedInterface

use of io.vertx.ext.sync.testmodel.ReturnedInterface in project vertx-sync by vert-x3.

the class TestVerticle method testExecSyncMethodWithParamsAndHandlerInterface.

@Suspendable
protected void testExecSyncMethodWithParamsAndHandlerInterface() {
    ReturnedInterface returned = awaitResult(h -> ai.methodWithParamsAndHandlerInterface("apples", 123, h));
    assertNotNull(returned);
    String res = awaitResult(h -> returned.methodWithParamsAndHandlerNoReturn("bananas", 100, h));
    assertEquals(res, "bananas100");
    complete();
}
Also used : ReturnedInterface(io.vertx.ext.sync.testmodel.ReturnedInterface) Suspendable(co.paralleluniverse.fibers.Suspendable)

Aggregations

Suspendable (co.paralleluniverse.fibers.Suspendable)1 ReturnedInterface (io.vertx.ext.sync.testmodel.ReturnedInterface)1