MethodProperty extends AbstractPackagedProperty<Method> { @Override protected String asString(Method value) { return MethodPropertyModule.asString(value); } MethodProperty(String theName, String theDescription, Method theDefault, String[] legalPackageNames,
                          float theUIOrder); private  MethodProperty(String theName, String theDescription, Method theDefault, String[] legalPackageNames,
                           float theUIOrder, boolean isDefinedExternally);  MethodProperty(String theName, String theDescription, String defaultMethodStr, String[] legalPackageNames,
                          float theUIOrder); @Override Class<Method> type(); @Override Method createFrom(String valueString); static MethodPBuilder named(String name);  }
@Test public void testAsMethodOn() { Method[] methods = new Method[METHOD_SIGNATURES.length]; for (int i = 0; i < METHOD_SIGNATURES.length; i++) { methods[i] = ValueParserConstants.METHOD_PARSER.valueOf(METHOD_SIGNATURES[i]); assertNotNull("Unable to identify method: " + METHOD_SIGNATURES[i], methods[i]); } String translatedMethod; for (int i = 0; i < methods.length; i++) { translatedMethod = MethodPropertyModule.asString(methods[i]); assertTrue("Translated method does not match", ClassUtil.withoutPackageName(METHOD_SIGNATURES[i]) .equals(ClassUtil.withoutPackageName(translatedMethod))); } }