use of org.apache.servicecomb.core.provider.consumer.ReactiveResponseExecutor in project incubator-servicecomb-java-chassis by apache.
the class EdgeInvocation method createInvocation.
@Override
protected void createInvocation() {
ReferenceConfig referenceConfig = new ReferenceConfig();
referenceConfig.setMicroserviceMeta(latestMicroserviceVersionMeta.getMicroserviceMeta());
referenceConfig.setMicroserviceVersionRule(microserviceVersionRule.getVersionRule().getVersionRule());
referenceConfig.setTransport(Const.ANY_TRANSPORT);
this.invocation = InvocationFactory.forConsumer(referenceConfig, restOperationMeta.getOperationMeta(), null);
this.invocation.setResponseExecutor(new ReactiveResponseExecutor());
}
use of org.apache.servicecomb.core.provider.consumer.ReactiveResponseExecutor in project incubator-servicecomb-java-chassis by apache.
the class TestReactiveResponseExecutor method testReactiveResponseExecutor.
@Test
public void testReactiveResponseExecutor() {
ReactiveResponseExecutor executor = new ReactiveResponseExecutor();
Runnable cmd = Mockito.mock(Runnable.class);
boolean validAssert = true;
try {
executor.execute(cmd);
} catch (Exception e) {
validAssert = false;
}
Assert.assertTrue(validAssert);
}
Aggregations