use of com.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker in project pinpoint by naver.
the class DubboConsumerIT method testConsumer.
@Test
public void testConsumer() throws NoSuchMethodException {
abstractClusterInvoker = new FailoverClusterInvoker(directory);
when(abstractClusterInvoker.getInterface()).thenReturn(String.class);
try {
abstractClusterInvoker.invoke(rpcInvocation);
} catch (RpcException ignore) {
// ignore
}
PluginTestVerifier verifier = PluginTestVerifierHolder.getInstance();
verifier.printCache();
Method invoke = AbstractClusterInvoker.class.getMethod("invoke", Invocation.class);
verifier.verifyTrace(Expectations.event("DUBBO_CONSUMER", invoke));
verifier.verifyTraceCount(0);
}
use of com.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker in project pinpoint by naver.
the class DubboConsumerIT method testConsumerMonitor.
@Test
public void testConsumerMonitor() {
abstractClusterInvoker = new FailoverClusterInvoker(directory);
when(abstractClusterInvoker.getInterface()).thenReturn(MonitorService.class);
try {
abstractClusterInvoker.invoke(rpcInvocation);
} catch (RpcException ignore) {
// ignore
}
PluginTestVerifier verifier = PluginTestVerifierHolder.getInstance();
verifier.printCache();
verifier.verifyTraceCount(0);
}
Aggregations