Search in sources :

Example 71 with RpcException

use of com.alibaba.dubbo.rpc.RpcException 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);
}
Also used : FailoverClusterInvoker(com.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker) RpcException(com.alibaba.dubbo.rpc.RpcException) PluginTestVerifier(com.navercorp.pinpoint.bootstrap.plugin.test.PluginTestVerifier) Test(org.junit.Test)

Aggregations

RpcException (com.alibaba.dubbo.rpc.RpcException)71 Test (org.junit.Test)28 RpcInvocation (com.alibaba.dubbo.rpc.RpcInvocation)23 Result (com.alibaba.dubbo.rpc.Result)22 URL (com.alibaba.dubbo.common.URL)20 RpcResult (com.alibaba.dubbo.rpc.RpcResult)17 ArrayList (java.util.ArrayList)11 Invoker (com.alibaba.dubbo.rpc.Invoker)10 Method (java.lang.reflect.Method)10 Invocation (com.alibaba.dubbo.rpc.Invocation)8 RemotingException (com.alibaba.dubbo.remoting.RemotingException)7 ExchangeClient (com.alibaba.dubbo.remoting.exchange.ExchangeClient)5 IOException (java.io.IOException)5 HashMap (java.util.HashMap)5 ClassPathXmlApplicationContext (org.springframework.context.support.ClassPathXmlApplicationContext)5 InvocationTargetException (java.lang.reflect.InvocationTargetException)4 Date (java.util.Date)4 List (java.util.List)4 Map (java.util.Map)4 ApplicationConfig (com.alibaba.dubbo.config.ApplicationConfig)3