use of org.apache.dubbo.service.Person in project dubbo by alibaba.
the class MethodConfigTest method testConvertMethodConfig2AsyncInfo.
@Test
public void testConvertMethodConfig2AsyncInfo() throws Exception {
org.apache.dubbo.config.MethodConfig methodConfig = new org.apache.dubbo.config.MethodConfig();
methodConfig.setOninvokeMethod("setName");
methodConfig.setOninvoke(new Person());
AsyncMethodInfo methodInfo = org.apache.dubbo.config.MethodConfig.convertMethodConfig2AsyncInfo(methodConfig);
assertEquals(methodInfo.getOninvokeMethod(), Person.class.getMethod("setName", String.class));
}
Aggregations