@Test public void testAdderName() { String result = methodHelper.getAdderName("testfield"); assertEquals("addTestfield", result); result = methodHelper.getAdderName("testfields"); assertEquals("addTestfields", result); }
public String getAdderName(String name) { String adder = "add" + name.substring(0, 1).toUpperCase() + name.substring(1); return adder; }
MethodHelper { public String getAdderName(String name) { String adder = "add" + name.substring(0, 1).toUpperCase() + name.substring(1); return adder; } }
MethodHelper { public String getAdderName(String name) { String adder = "add" + name.substring(0, 1).toUpperCase() + name.substring(1); return adder; }  }
MethodHelper { public String getAdderName(String name) { String adder = "add" + name.substring(0, 1).toUpperCase() + name.substring(1); return adder; }  String getGetterName(String name); String getIsName(String name); String getSetterName(String name); String getAdderName(String name); String getSingularName(String pluralName); String getPluralName(String singularName); }
MethodHelper { public String getAdderName(String name) { String adder = "add" + name.substring(0, 1).toUpperCase() + name.substring(1); return adder; }  String getGetterName(String name); String getIsName(String name); String getSetterName(String name); String getAdderName(String name); String getSingularName(String pluralName); String getPluralName(String singularName);  }