fix convertMethodConfig2AsyncInfo spelling error (#4563)
This commit is contained in:
parent
a88b1e295b
commit
843e2ee35b
|
|
@ -108,12 +108,12 @@ public class MethodConfigTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testConverMethodConfig2AsyncInfo() throws Exception{
|
||||
public void testConvertMethodConfig2AsyncInfo() throws Exception{
|
||||
org.apache.dubbo.config.MethodConfig methodConfig = new org.apache.dubbo.config.MethodConfig();
|
||||
methodConfig.setOninvokeMethod("setName");
|
||||
methodConfig.setOninvoke(new Person());
|
||||
|
||||
ConsumerMethodModel.AsyncMethodInfo methodInfo = org.apache.dubbo.config.MethodConfig.convertMethodConfig2AyncInfo(methodConfig);
|
||||
ConsumerMethodModel.AsyncMethodInfo methodInfo = org.apache.dubbo.config.MethodConfig.convertMethodConfig2AsyncInfo(methodConfig);
|
||||
|
||||
assertEquals(methodInfo.getOninvokeMethod(), Person.class.getMethod("setName", String.class));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -249,7 +249,7 @@ public abstract class AbstractConfig implements Serializable {
|
|||
}
|
||||
}
|
||||
|
||||
protected static ConsumerMethodModel.AsyncMethodInfo convertMethodConfig2AyncInfo(MethodConfig methodConfig) {
|
||||
protected static ConsumerMethodModel.AsyncMethodInfo convertMethodConfig2AsyncInfo(MethodConfig methodConfig) {
|
||||
if (methodConfig == null || (methodConfig.getOninvoke() == null && methodConfig.getOnreturn() == null && methodConfig.getOnthrow() == null)) {
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -314,7 +314,7 @@ public class ReferenceConfig<T> extends AbstractReferenceConfig {
|
|||
map.put(methodConfig.getName() + ".retries", "0");
|
||||
}
|
||||
}
|
||||
attributes.put(methodConfig.getName(), convertMethodConfig2AyncInfo(methodConfig));
|
||||
attributes.put(methodConfig.getName(), convertMethodConfig2AsyncInfo(methodConfig));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue