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());
}