Search in sources :

Example 1 with Caller

use of com.weibo.api.motan.rpc.Caller in project motan by weibocom.

the class SwitcherFilterTest method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    request = mockery.mock(Request.class);
    response = mockery.mock(Response.class);
    caller = mockery.mock(Caller.class);
    url = new URL(MotanConstants.PROTOCOL_MOTAN, NetUtils.getLocalAddress().getHostAddress(), 0, RegistryService.class.getName());
    attachments = new HashMap<String, String>();
    attachments.put(URLParamType.host.getName(), URLParamType.host.getValue());
    attachments.put(URLParamType.application.getName(), URLParamType.application.getValue());
    attachments.put(URLParamType.module.getName(), URLParamType.module.getValue());
}
Also used : Response(com.weibo.api.motan.rpc.Response) Caller(com.weibo.api.motan.rpc.Caller) Request(com.weibo.api.motan.rpc.Request) URL(com.weibo.api.motan.rpc.URL)

Aggregations

Caller (com.weibo.api.motan.rpc.Caller)1 Request (com.weibo.api.motan.rpc.Request)1 Response (com.weibo.api.motan.rpc.Response)1 URL (com.weibo.api.motan.rpc.URL)1