@Test public void testTemplateNameCanBeDerivedFromMethodName() throws Exception { MethodTemplate template = new MethodTemplate(methodByName(TemplateNameDerivedFromMethodName.class, "myTemplateName")); assertEquals("myTemplateName", template.getTemplateName()); }
public String getTemplateName() { return templateName; }
MethodTemplate { public String getTemplateName() { return templateName; } }
MethodTemplate { public String getTemplateName() { return templateName; } MethodTemplate(Method method); }
MethodTemplate { public String getTemplateName() { return templateName; } MethodTemplate(Method method); String getTemplateName(); Method getMethod(); String getParamName(int idx); int getParamPosition(int idx); int getParamSize(); int getContentArgPosition(); Class<? extends ContentTransformer<?>> getContentTransformerClass(); Class<?> getResultType(); Class<?> getGenericContentType(); static MethodTemplate[] from(Class<T> clientInterface); }
MethodTemplate { public String getTemplateName() { return templateName; } MethodTemplate(Method method); String getTemplateName(); Method getMethod(); String getParamName(int idx); int getParamPosition(int idx); int getParamSize(); int getContentArgPosition(); Class<? extends ContentTransformer<?>> getContentTransformerClass(); Class<?> getResultType(); Class<?> getGenericContentType(); static MethodTemplate[] from(Class<T> clientInterface);  }