Swagr code-gen: Refactoring method names in mapper and generator interfaces

This commit is contained in:
Deepak Michael
2011-07-23 07:57:46 +05:30
parent 63c7932a67
commit 5ec7c8b40e
10 changed files with 39 additions and 39 deletions

View File

@@ -195,7 +195,7 @@ public class TestCaseExecutor {
if(method.getName().startsWith("get")){
String methodName = method.getName();
String fieldName = methodName.substring(3);
fieldName = config.getNameGenerator().convertToMethodNameFormat(fieldName);
fieldName = config.getNameGenerator().applyMethodNamingPolicy(fieldName);
Object value = inputDefinitions.get(fieldName);
BeanUtils.setProperty(object, fieldName, value);
}